Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(section == 0){
- return storedArr[section].count
- }
- else if(section == 1){
- return storedArr[section].count
- }
- else if(section == 2){
- return storedArr[section].count
- }
- var arr1:[String] = []
- var arr2:[String] = []
- var arr3:[String] = []
- var celebrityArr:[[String]] = []
- override func viewDidLoad() {
- super.viewDidLoad()
- storedArr = [arr1, arr2, arr3]
- }
- override func numberOfSections(in tableView: UITableView) -> Int {
- return storedArr.count
- }
- override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
- if(section == 0){
- return storedArr[section].count
- }
- else if(section == 1){
- return storedArr[section].count
- }
- else if(section == 2){
- return storedArr[section].count
- }
- // and so on......
- return 0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement