iphone
How to get iPhone crash log from customers?
You can perform your own crash-logging with PLCrashReporter. Typically, you write the crash log to a file and then send it to a server the next time the app starts. In order to prevent an infinite crash-reporting loop (there was one in an early version), you want to do things in a specific order: Read … Read more
iOS sandbox environment auto-renewal subscription
a) Auto-renewing subscriptions are inconsistent in the sandbox environment. Sometimes a subscription will renew multiple times (about 5) before ending. Other times it won’t renew at all. b) (iOS6 transaction receipts only) You don’t need to call restoreCompletedTransactions to check the status of a subscription if you’re storing previous receipts (preferably on your server). Just … Read more
iPhone crashing when presenting modal view controller
I have modified it slightly so that the loading view is shown after a tiny delay, and this works fine! So it appears to be something within the same event loop! – (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; // Show load [self performSelector:@selector(doit) withObject:nil afterDelay:0.1]; } – (void)doit { [self presentModalViewController:loader animated:YES]; }
CLLocation Category for Calculating Bearing w/ Haversine function
Your code seems fine to me. Nothing wrong with the calculous. You don’t specify how far off your results are, but you might try tweaking your radian/degrees converters to this: double DegreesToRadians(double degrees) {return degrees * M_PI / 180.0;}; double RadiansToDegrees(double radians) {return radians * 180.0/M_PI;}; If you are getting negative bearings, add 2*M_PI to … Read more
Choose OpenGL ES 1.1 or OpenGL ES 2.0?
Whether to use OpenGL ES 1.1 or 2.0 depends on what you want to do in your application, and how many devices you need it to be compatible with. All iOS devices support OpenGL ES 1.1, where only the iPhone 3G S and newer devices (iPhone 3G S, iPhone 4, iPad, and 3rd and 4th … Read more