If you mean your com.whatever.whatever identification:
NSString *myAppID = [[NSBundle mainBundle] bundleIdentifier];
If you mean your iTunes id123456789 identification, it's not available to you at runtime, but is given to you on iTunes Connect and can be manually inserted into your app from there.