Tuesday, June 7, 2011
Monday, June 6, 2011
Saturday, June 4, 2011
Thursday, June 2, 2011
Tuesday, May 31, 2011
WWDC 2011...
WWDC 2011 will be about:
- iCloud
- iOS 5
- Lion (Mac OS X 10.7)
Steve Jobs will be there!
Posted by
WidgetBook
at
16:59
0
comments
Monday, May 30, 2011
iPhone is case-sensitive
I had a strange issue today while programming my iPhone. Although the application was running find on iOS Simulator, it crashed on my iPhone 4.
The iPhone was generating the following error:
2:53 unknown Pickers[15251]: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter'
The problem was a wrongly typed file name. The "wrong" command was:
NSString *path = [[NSBundle mainBundle] pathForResource:@"Crunch" ofType:@"wav"];
and I had to change it to (notice the small __c__)
NSString *path = [[NSBundle mainBundle] pathForResource:@"crunch" ofType:@"wav"];
The funny thing was that both of them were working on the iOS Simulator but only the second one on my iPhone! So, iPhone is case-sensitive.
The iPhone was generating the following error:
2:53 unknown Pickers[15251]
The problem was a wrongly typed file name. The "wrong" command was:
NSString *path = [[NSBundle mainBundle] pathForResource:@"Crunch" ofType:@"wav"];
and I had to change it to (notice the small __c__)
NSString *path = [[NSBundle mainBundle] pathForResource:@"crunch" ofType:@"wav"];
The funny thing was that both of them were working on the iOS Simulator but only the second one on my iPhone! So, iPhone is case-sensitive.
Posted by
WidgetBook
at
18:42
0
comments
Labels: iOS, Programming, tip
Saturday, May 28, 2011
Tab bar items
As I was reading a book on iPhone 3 development, I thought that it would be useful to point out the new way (in Xcode 4) of creating tab bar items.
In Xcode 3, this job was done from the Attributes inspector of the Tab Bar Controller.
You should now drag a Tab Bar Item from the library to a Tab Bar Controller.
In Xcode 3, this job was done from the Attributes inspector of the Tab Bar Controller.
You should now drag a Tab Bar Item from the library to a Tab Bar Controller.
Posted by
WidgetBook
at
18:24
0
comments
Labels: iOS, Programming, Xcode
Wednesday, May 25, 2011
Subscribe to:
Posts (Atom)






