applicationWillTerminate not getting called on force quit of iOS app

Have you read the documentation for applicationWillTerminate:, It says, For applications that do not support background execution or are linked against iOS 3.x or earlier, this method is always called when the user quits the application. For applications that support background execution, this method is generally not called when the user quits the application because … Read more

Objective-C Property Access

Nothing! Dot-notation is “syntactic sugar” introduced in Objective-C 2.0. In fact, the compiler converts foo.property to [foo property] during compile-time, so they compile to exactly the same thing. It’s simply a matter of which you prefer.

NSNumber of seconds to Hours, minutes, seconds

Have you tried creating an NSDate from that and printing that using an NSDateFormatter? NSDate *date = [NSDate dateWithTimeIntervalSince1970:[theNumber doubleValue]]; NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@”HH:mm:ss”]; NSLog(@”%@”, [formatter stringFromDate:date]); [formatter release]; If you need the individual values for hours, minutes, and seconds, use NSDateComponents as suggested by nall. The above won’t print the … Read more

What is the reason of kSecTrustResultRecoverableTrustFailure?

It may be a server certificate problem…. Check here, I solved my kSecTrustResultRecoverableTrustFailure problem, adding subjectAltName = DNS:example.com into openssl config file, specifically in server key generation… If you are not using openssl to generate it, I’m sorry but I can help you.. Anyway if you want to use openssl, here is a good tutorial … Read more