Ambiguous reference to member 'tableView'
Code and errors
Continued on the code and one more errors!
Hi, I’m new to Xcode swift. I have been doing good so far except trying to follow someone tutorial from 8.2 and I’m getting these errors that I have the hardest time understanding. Anybody who can explain what these errors means and maybe, just maybe how to fix them?
I have edited my posts, can’t link more items than 2.
- How to declare a property of a particular class which is also protocol conformant?
- NSTextAlignment.Justified for UILabel does not work
- Multiline Navigationbar Title
- How do I insert an element at the correct position into a sorted array in Swift?
- How to convert string to MD5 hash using ios swift
- Swift, Equatable protocol bug?
3 Solutions Collect From Internet About “Ambiguous reference to member 'tableView'”
You need to declare your
tableView up by your other
@IBOutlets since you are using a
UIViewController and putting a
tableView within it’s view. Currently the
UIViewController doesn’t know what
tableView you are referring too.
@IBOutlet var tableView: UITableView!
Then link it up in the interface builder as you have done with your other
@IBOutlets. Make sure you link the
dataSource properties of your
tableView back to the view controller as well.
To do the latter, after you select your
tableView, select the Connections Inspector area, as shown in the picture below, and connect them back to your
In my case, I’ve used:
@IBOutlet private weak var tableView: UITableView!
and use tableView inside extensions method.
fileprivate, and error has gone.
Here it is in Swift 4
let iPath = NSIndexPath(row: self.TableView.numberOfRows(inSection: 0)-1, section: self.messageTableView.numberOfSections-1) self.TableView.scrollToRow(at: iPath as IndexPath, at: UITableViewScrollPosition.bottom, animated: true)
- Issues with extra MIDI track being created in AKsequencer, using audiokit
- Firebase Phone number authentication Error
- Swift – Reorder UITableView cells
- When do I use CFRelease?
- Swift: Creating a factory function that takes a class type as a parameter, and outputs a constructor of that class
- Reduce the Xcode Simulator (Retina 4 inch)
- Cleanly converting an Objective-C Boolean to a Swift Bool?
- Check for class existence in Swift
- Disable and Enable UIButton – XCode Swift
- How do I check the TARGET_NAME of my iPhone app on XCode?
- Is History API broken on iOS? (Location bar doesn't update on pushState)
- -webkit-overflow-scrolling: touch breaks my -webkit-scrollbar css in iOS
- google-tv development Environment
- iOS/Swift: tableView cellForRowAtIndexPath crash
- Customise NSLog so it shows less info