Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extension ViewController : UITableViewDelegate{
- func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat{
- return 300;
- }
- }
- extension ViewController : UITableViewDataSource{
- func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
- return _count;
- }
- func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
- guard let cell = tableView.dequeueReusableCell(withIdentifier: qTableViewCell.reuseIdentifier, for: indexPath) as? qTableViewCell else { fatalError("Unexpected Table View Cell") }
- return cell
- }
Add Comment
Please, Sign In to add comment