- iCloud
- iOS 5
- Lion (Mac OS X 10.7)
Tuesday, May 31, 2011
WWDC 2011...
WWDC 2011 will be about:
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
Tuesday, May 24, 2011
Tuesday, May 10, 2011
Friday, May 6, 2011
Dive into Python
As I will teach the Python programming language, I wanted a good book to quickly teach me Python.
My brother told be about the "Dive Into Python" book. The good news is that the book is freely available as well as published by Apress.
I have downloaded and printed the free version :)
There are two editions of the book that can be found here and here.
My brother told be about the "Dive Into Python" book. The good news is that the book is freely available as well as published by Apress.
I have downloaded and printed the free version :)
There are two editions of the book that can be found here and here.
Posted by WidgetBook at 11:18 1 comments
Labels: Book, Programming, python
Wednesday, May 4, 2011
Developer promo codes
I am sorry to inform that it is no longer possible
to rate or review
an app if it was downloaded
using a developer’s promotional code.
(Sounds fair, I think)
Read it here.
Posted by WidgetBook at 02:55 0 comments
Labels: Apple, Programming
Tuesday, May 3, 2011
Sunday, May 1, 2011
Subscribe to:
Posts (Atom)