Home » Archive

Articles in the iPhone Category

iPhone, iPhone Programming »

Whilst working within XCode’s data modelling tool the window decided to blank out and go grey. For some reason it wouldn’t show any objects. (Grrr – Annoying!!!)
A few others seem to have had the same problem:
http://www.iphonedevsdk.com/forum/iphone-sdk-development/77096-cant-visualize-correctly-core-data-model-xcode-4-a.html
http://stackoverflow.com/questions/6433549/xcode4-core-data-model-editor-display-problem
I’m not sure what causes it (probably my attempt to re-jig that entity split seconds before the window went nuts!) but the grids and objects re-appear when you delete certain entities from the model (not useful but happens!!).
After an hour of searching and tinkering with the buggy window and finding no solution i decided to …

iPhone, iPhone Programming, Programming »

If you are doing something like the following:
NSString *path = [[NSBundle mainBundle] pathForResource:@”MenuStructure” ofType:@”plist”];
self.menuItems = [NSArray arrayWithContentsOfFile:path];
and run into problems resulting in an empty array which upon examination using breakpoints shows ‘Invalid Array’. U should check the following:
1. That the path is correct. if u use NSLog to print the path to the console or use the contextual info from the path then you will be told were your app is located. This would work best using they simulator because you will actually be able to navigate to the files. …

iPhone, iPhone Programming, Programming »

Many sources state that you cannot change the height of a UIPageControl from within xcode, however the PageControl code sample from Apple demonstrates otherwise.
In this sample the UIPageControl features an editable height component, and you may also notice that whilst looking through the identity inspector, that there are also accessibility options.
This is because they have used a View (UIView) object from the library and changed the class type to a UIPageControl (naughty! – I swear I read somewhere in the documentation not to do this!) but the icon was the …