An example that made me ask is:
Xcode tells me to
// Get the new view controller using [segue destinationViewController].
but i did it like this
destViewController = segue.destinationViewController;
Im just starting to learn objective-c, i'v only ever wrote c++. Could someone elaborate on the [ ] and the difference between segue.destinationViewController
and [segue destinationViewController]
and when you should use one or the other? (I don't know what terminology to search)
destinationViewController just holds the pointer to a view controller and is not a method right? This is whats confusing my i thought [x y] syntax is for calling methods so why does xcode tell me to do this?