Category: "Q&A"
IOS Error:'Cannot create an NSPersistentStoreCoordinator with a nil model'
I backed to build my first iOS app again. Today, I got this error:'Cannot create an NSPersistentStoreCoordinator with a nil model'.
Actually, that is easy to fix.
Please make this line of code:
Code
NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"[name]" withExtension:@"momd"]; |
The [name] you filled in is same as your model file (.xcdatamodeld).
For example I got a TipRecord.xcdatamodeld then this line should be:
Code
NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"TipRecord" withExtension:@"momd"]; |
iOS Error:'Push segues can only be used when the source controller is managed by an instance of UINavigationController.''
I tried to add a button which will jump a Navigation Control Screen after it clicked. But I ran the application, after the button is clicked, I got this error, 'Push segues can only be used when the source controller is managed by an instance of UINavigationController.'' By try and error, I found that is because the button cannot use "Push" action, you need to use modal action. Then that will work!
Do you need your own Mobile Apps?
Recently, there are so many people asked me, "can you build an apps for me?" First of all, I wish to ask what is the purpose to your own app. Well, the most popular answer is "I wish the mobile users can access the information in my website!". So, I will recommend them to build a responsive website.
To build a responsive website is only adding a mobile css and maybe jquery tricks into your existing website. That is much lower cost. Moreover, the user is more prefer to enter url rather than installing an app.
Nowadays, mobile apps sounds a cool stuff which everyone wish to have, but we need to ask whether you really need that. There are plenty of choices out there!
IAd Error
We started to build ios app again. But I drop iAd banner on the panel and run the app. I got this error "Could not instantiate class named ADBannerView".
Well, that is a silly mistake. I just forgot going the project and add iAd.framework at Linked frameworks and libraries in the target, just like before:
How to boot from USB drive in XPS 13 Ultrabook
That is very hard to set the boot order in in XPS 13 Ultrabook. Even we tried to select the option boot from USB drive in the Windows Boot Manager. But we found the way.
Just following these steps:
1. Turn on the PC and press F2
2. set secured boot in the boot option menu to be disabled
3. change usb drive to be first in legacy list
4. Set the boot list to be legacy list
5. exit and save.
Then plug-in a bootable USB.