Convert TimeStamp to NSDate in Objective-C
iOS users are currently playing second fiddle awaiting the official Google+ app for iOS which is currently being reviewed by Apple.
If you are a registered Google+ user, the only way to access the service on iOS devices is via Mobile web interface which is very restricting when it comes to uploading media.
Mashable published a ‘How-To’ guide for users who don’t have the patience of waiting for the official app. The workaround requires you to download a free app (Piconhand) from the App Store which allows you to upload photos to your Google+ stream. Its a decent workaround for now, but I found it a bit cumbersome.
Use Xcode:
- Edit Scheme
- Select Arguments tab.
- Add Environment Variables.
Name:NSZombieEnabled
Value:YES
Introduce NSZombieEnabled: http://www.cocoadev.com/index.pl?NSZombieEnabled
ЛаЛаЛа (ла-ла-лай-ла) - pushnoi-ru
(Source: i0sdev)
id aValue = [arrayWithNull objectAtIndex:0];
if (aValue == nil) {
NSLog(@”equals nil”);
} else if (aValue == [NSNull null]) {
NSLog(@”equals NSNull instance”);
if ([aValue isEqual:nil]) {
NSLog(@”isEqual:nil”);
}
}
// output: “equals NSNull instance”