This code fragment
1 2 3 |
|
causes Interface type cannot be statically allocated
But xcode is smart enough to show a tip right away on how to fix it. Just need to change NSURL
to NSURL*
This code fragment
1 2 3 |
|
causes Interface type cannot be statically allocated
But xcode is smart enough to show a tip right away on how to fix it. Just need to change NSURL
to NSURL*
The debugger will stop at the UIApplicationMain
line
It totally throws me off because nothing is wrong on that line.
I proceeded to reboot my iphone and MacBookPro. Sometimes thing can get a bit funny if I test my apps on the iphone, the actual hardware.
But it did not fix the problem.
Eventually I undo the last change I made, which is
and it works again.
Terrible. A good half day is lost. If only I can find out what 0x171070 was in lldb.
When I select a prototype cell, it does not follow segue and show the destination controller, as defined in the storyboard above.
The root cause seems to be that, since my originating controller is not a navigation controller, it does not respond to a ‘push’ segue.
Once I change the segue type to ‘modal’, it works.
Sample use of pragma mark
1 2 3 |
|
Added a UITableVIew to my custom controller. Now I want to be able to add a segway to a cell in this table view.
Since I did not start with a UITableViewController at the beginning, I was unable to connect a segway to an individual cell inside the table view.
Finally, by trial and error, I dragged a ‘Table View Cell’ object onto the UITableView. It is now displayed as ‘Prototype Cells’
I can create an outgoing segway from this prototype cell. But now I am getting this error message
It can be easily fixed by simply filling in the Identifier field in the Attribute inspector.