ios6

Request to web service over SSL

ⅰ亾dé卋堺 提交于 2019-12-03 13:00:48
i am struggling to request web service using https. I am getting this kind of error: An error occured : The certificate for this server is invalid. You might be connecting to a server that is pretending to be “SERVER_ADDRESS” which could put your confidential information at risk. I am not using NSUrlConnectionDelegate. Here is my method: - (void)sendRequestWithUrl:(NSURL*)url block:(void (^)(NSDictionary *dict, NSError *error)) block{ NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; [request setHTTPMethod:@"POST"]; [[NSRunLoop currentRunLoop] runMode

iOS 6 auto rotation issue - supportedInterfaceOrientations return value not respected

拜拜、爱过 提交于 2019-12-03 13:00:07
I've got an app where I have a UINavigationController subclass as my rootViewController . I've got a UITableViewController that lets the user edit some settings, it should always be in portrait mode. My app also needs to support all other orientations after I push a MoviePlayer component onto the navigation controller. The UITableViewController subclass has this implementation of supportedInterfaceOrientations: - (NSUInteger)supportedInterfaceOrientations { LLog(); return UIInterfaceOrientationMaskPortrait; } The logging command tells me that this gets actually called. The problem is that the

When to use viewDidLoad and when to use awakeFromNib

梦想的初衷 提交于 2019-12-03 12:48:17
I've gotten pretty comfortable using the viewDidLoad method to execute things I want done at the beginning of a view, but reading one of Apple's tutorials they set the data controller for the class in the awakeFromNib method and did nothing in the awakeFromNib. I swapped it and it seemingly worked identically in my app, but I'm not sure if it was better to have it in awakeFromNib or viewDidLoad. When should I use either one? onkar awakeFromNib is called when the associated nib file with a class is loaded . Any class that can own a nib can use it. viewDidLoad is used only by view controllers.

SDK 3.1: How to tell whether SDK is using iOS6 accounts or not?

☆樱花仙子☆ 提交于 2019-12-03 12:46:52
If I have a Facebook account set up in iOS6 but the user has switched it off, the SDK just gives me a FBSessionStateClosedLoginFailed status. From that, I can't tell if the user has switched us off in iOS (case 1) or doesn't have an account set up in iOS and declined permission from the FB app or web app (case 2). The error messages I need to present are quite different in the two cases. In the first case, we need to tell the user how to switch us back on, but those instructions would be confusing for someone in case 2. I tried using the iOS Accounts framework, but if I'm switched off, I'm

iOS6 : How to use the conversion feature of YUV to RGB from cvPixelBufferref to CIImage

末鹿安然 提交于 2019-12-03 12:45:19
From iOS6, Apple has given the provision to use native YUV to CIImage through this call initWithCVPixelBuffer:options: In the core Image Programming guide, they have mentioned about this feature Take advantage of the support for YUV image in iOS 6.0 and later. Camera pixel buffers are natively YUV but most image processing algorithms expect RBGA data. There is a cost to converting between the two. Core Image supports reading YUB from CVPixelBuffer objects and applying the appropriate color transform. options = @{ (id)kCVPixelBufferPixelFormatTypeKey : @(kCVPixelFormatType

Cannot get passed the Validation stage of submitting app with iPhone 5 support

喜夏-厌秋 提交于 2019-12-03 12:44:44
This is an old app that's been submitted many times without problems. I've modified the code and the info.plist to support iOS 6 and iPhone 5, but didn't change the build settings at all. I've checked the certificates and provisioning profiles, they are all sound. All adhoc builds ran just fine on our devices. I'm using Xcode 4.5. I build without errors and it archives just fine. It shows up in the Organizer. When I click Validate..., I click through just like normal, pick the right provisioning profile, but then it fails every time with the same three errors: Unable to run the lipo command

iOS In-App Purchases: Sandbox Invalid Product ID

余生长醉 提交于 2019-12-03 12:44:18
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/Banking info in the interim account, it was not set up in my name so I can't just add mine. Right now,

Syncing Core Data across multiple devices using iCloud

孤街浪徒 提交于 2019-12-03 12:37:49
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. It depends on what you want to do. There are two types of Core Data-iCloud integration, as described here: http://developer.apple.com/library/ios/#releasenotes/DataManagement/RN-iCloudCoreData/_index.html There are broadly speaking two types

Stack trace method names redacted

五迷三道 提交于 2019-12-03 12:16:17
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-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke_0 + 16 6 Foundation

iOS: Is there absolutely no way to build for armv6 in Xcode 4.5?

一个人想着一个人 提交于 2019-12-03 12:02:30
Starting with Xcode 4.5 the possibility of building for armv6 devices is not given anymore (iPhone/iPod touch 1st and 2nd generation). This means no new versions of our app for iPhone 2G and 3G which is very unlucky. Does anyone know if there will be a workaround? I really don´t see any technical reasons for this. You can have multiple versions of xcode installed. In the past, that has been the fix needing to use an older xcode feature. It is a workaround, and the project files may eventually evolve in a way that no longer supports the older tools, but for the time being, that will allow you