ios6

Syncing Core Data across multiple devices using iCloud

不想你离开。 提交于 2019-12-09 09:48:13
问题 There has been a lot of discussion lately about the issues with iCloud and Core Data and how Apple's APIs are currently broken in iOS 5 and possibly iOS 6. Is it possible, given the current state of Apple's Core Data API, to reliably sync across multiple devices using iCloud? If so, how would you do this? If not, please recommend an alternative approach. 回答1: It depends on what you want to do. There are two types of Core Data-iCloud integration, as described here: http://developer.apple.com

iOS In-App Purchases: Sandbox Invalid Product ID

和自甴很熟 提交于 2019-12-09 09:27:03
问题 Background on the slightly odd setup before I get to the problem: Working on an app for a client and we're using an different iTunes developer account than the one this will eventually be published on for development and Ad-Hoc builds of an app that has Game Center and IAP integration. Obviously, we'll eventually have to duplicate our setup on the final release account, but the issue seems to be unrelated. The issue is trying to test In-App Purchases in the sandbox. We do not have any Tax

Stack trace method names redacted

孤者浪人 提交于 2019-12-09 08:41:12
问题 I have users email me stack traces when my app crashes on their device. Prior to iOS 6 they looked like this: CRASH: NSInvalidArgumentException (*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil) TRACE: ( 0 CoreFoundation 0x355e58a7 __exceptionPreprocess + 186 1 libobjc.A.dylib 0x3798c259 objc_exception_throw + 32 2 CoreFoundation 0x3553a1d7 -[__NSArrayM insertObject:atIndex:] + 186 3 MYAPP 0x0006c0f7 MYAPP + 188663 4 MYAPP 0x000652a3 MYAPP + 160419 5 Foundation 0x3512ac29 __65-

Unknown crash reason (with CrashReport attached) SIGTRAP. AFNetworking?

烂漫一生 提交于 2019-12-09 08:09:08
问题 I keep getting these crashes in my app that´s in the AppStore. The CrashReport always looks like this: Incident Identifier: 986486D7-F013-4102-B9E3-84F923223914 CrashReporter Key: [TODO] Hardware Model: iPhone4,1 Process: MyApp [57885] Path: /Users/USER/MyApp.app/MyApp Identifier: de.myapp.iphone Version: 12475 Code Type: ARM Parent Process: launchd [1] Date/Time: 2012-12-20 15:48:53 +0000 OS Version: iPhone OS 6.0.1 (10A523) Report Version: 104 Exception Type: SIGTRAP Exception Codes: #0 at

Simple UICollectionView to show images behaves odd: Some Images are displayed correct, some at wrong position, some missing at all

ぐ巨炮叔叔 提交于 2019-12-09 07:59:22
问题 I want to show images in a grid on iPhone using a UICollectionView, showing 3 images a row. For a "dead simple test" (as I thought), I've added 15 JPG images to my project, so that they'll be in my bundle and I can load them simply via [UIImage imageNamed:...]. I think I've done everything correct (setting up & registering UICollectionViewCell subclass, use of UICollectionViewDataSource Protocol methods), however, the UICollectionView behaves very weird: It shows only a few of the images in

iPhone Simulator 6.0 not able to connect to gamecenter in sandbox mode

不想你离开。 提交于 2019-12-09 07:11:28
问题 I'm trying to implement a gamecenter aware app targeted to iOS 6. To give some info on the environment I'm working on mac os 10.7.5 with XCode version is 4.5.2 and xcode is running iphone and ipad simulator version 6.0. The problem is I cannot connect to gamecenter in sandbox mode neither through ipad or iphone simulator, but the same code works as desired while testing in my iphone. I followed the gamecenter programming guide in apple's developer library and I got this atm it is called from

Tabbar controller with navigationcontrollers orientation ios 6

孤者浪人 提交于 2019-12-09 07:04:47
问题 I'am currently working on an project where we have a tab bar controller with 4 tabs, and where each tab have an navigation controller. On each of these navigation controller there is multiple viewcontrollers pushed on it. I read a lot of post here and other places, and we have currently done the following: Subclassed UITabbarcontroller - (BOOL)shouldAutorotate { return [[[self.viewControllers objectAtIndex:self.selectedIndex]topViewController] shouldAutorotate]; } - (NSUInteger)

I can't understand rotation mechanism in iOS6

老子叫甜甜 提交于 2019-12-09 06:35:11
问题 My app has view controllers subclassing shouldautorotateToInterfaceOrientation . And in it, I decides each view's rotation. This works correctly. But in iOS6, though I read documents provided Apple, I can't understand it. My app has navigation controller as root view controller. This navigation controller has tab controller. And the tab controller has some view controllers. I want the first view controller (in tab controller) viewed only as portrait mode and the second view controller (in tab

iOS 6 - (BOOL)shouldAutorotate not getting called for navigation controllers pushed viewControllers

孤者浪人 提交于 2019-12-09 06:04:23
问题 For my app rootViewController is navgationController . I found that pushed controller's -(BOOL)shouldAutorotate is not getting called. and -(NSUInteger)supportedInterfaceOrientations get called only once. I have checked correctly in xcode's project summary (or plist ) for windows all orientation support. I want these method to get called, as there is some uicontrol positioning code which i want to execute programmatically for orientation change. I solved this problem by overriding (category)

Controlling the animation speed of MKMapView in iOS6

梦想与她 提交于 2019-12-09 05:37:59
问题 I'm trying to follow a car on a map view. This code should animate the car and the map with the same speed, so that the annotation view always appears in the center: [UIView beginAnimations:nil context:NULL]; [UIView setAnimationCurve:UIViewAnimationCurveLinear]; [UIView setAnimationDuration: 1.0]; [UIView setAnimationBeginsFromCurrentState:YES]; [car setCoordinate:coord]; [mapView setCenterCoordinate:coord]; [UIView commitAnimations]; It worked fine in iOS 5. In iOS 6 the map is not