I am creating an application in which I add and display passages from an iOS6 bookbook application to my application. But when I run the application on the simulator, it shows the added gaps, but when I run them on the device, it shows that my help is empty.
I followed the iOS6 tutorial integrating your account for your apps to create, add and display passes.
to access the passages I used the following code -
NSArray * passArray = [_passLib passes]; NSLog(@"number of passes in library are: %d",[passArray count]); //if more tha one pass in library, just use the first one. if ([passArray count] > 0) { for (int i = 0; i<[passArray count]; i++) { PKPass *onePass = [passArray objectAtIndex:i]; //access general fieldnames NSLog(@"%@",[onePass localizedName]); NSLog(@"%@",[onePass organizationName]); //access a specific field name NSLog(@"%@",[onePass localizedValueForFieldKey:@"rewards"]); } }
Do I need to make any changes if we run the application on the device to support integration with the account?
source share