hit counter

Timeline

My development logbook

Interface Type Cannot Be Statically Allocated

This code fragment

1
2
3

// item is a MPMediaItem
NSURL url = [item valueForProperty:MPMediaItemPropertyAssetURL];

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

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.

Added a UITableVIew to My Custom Controller. Now I Want to Be Able to Add a Segway to a Cell in This Table View.

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.