Check If Your Apple Device ID Was Compromised

Mashable acticle quote: “A hacker group called AntiSec said it has compromised 12 million Apple iOS Unique Device IDs (UDIDs) and personal information from Apple product owners — and there’s a good chance your iPhone, iPad or iPod Touch devices could be at risk.” Link to article. To check if you Apple Device ID was compromised go to this site: https://lastpass.com/udid/

Read More

Xcode Add iPad Compatibility

To add iPad compatibility in Xcode do the following: In Xcode 4 after opening select your project in the Project Navigator and select your target. Go to the summary tab and select “Universal” under Devices. For Xcode 3 take look at this blogpost.

Mac Recycle Trash Can Folder

To locate the recycle trash can folder on Mac you’ll first need to set hidden files and folder to visible. Show hidden files in Mac Finder. When this is done open Finder and navigate here: “Macintosh HD>Users>your username>.Trash” This is similar to Windows Recycle Bin.

Xcode Get The iPhones Language

To get the locale language in your app on iPhone you can use the this example: NSLog(@”localeIdentifier: %@”, [[NSLocale currentLocale] localeIdentifier]); If you running english language on your iPhone you’ll get this output: localeIdentifier: en_GB Other output could be en_US sv_SE da_DK de_DE and so on.

Xcode Printing NSData to NSLog

In Xcode Object-C to print out NSData to NSLog you might run into rubbish output by just outputting the NSData NSLog(@”%@”, myData); And as output something like this: <3c3f786d 6c207665 7273696f etc… This is not rubbish, though it might look that way, this is correct behavior and is just in hex format. If you know

Read More

Xcode Object-C NSUrl to NSString

In Object-C to convert back and forth from NSUrl and NSString take a look at this example: NSString *urlstring = [NSString stringWithFormat:@”http://spacetech.dk”]; NSURL *url = [NSURL URLWithString:urlstring]; NSLog(@”url = %@”,url); This will first save a NSString, then create a NSUrl from the String, and last output the NSUrl in the log