The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

me123669 (2) [Avatar] Offline

i read your first 3 chapters of iPhone in practice
and i found something that might get apps that use this get rejected later on

-(IBAction)doCameraBtnsmilieid)sender; {
UIImagePickerController *ipController = [[[UIImagePickerController alloc] init] autorelease];
if ([[[UIDevice currentDevice] model] rangeOfString:@"Sim"].location == NSNotFound) [ipController setSourceType:UIImagePickerControllerSourceTypeCamera];
[ipController setDelegate:self];
[self presentModalViewController:ipController animated:YES]; }

you try to see if the device has a camera by looking for a sim card
but the iPad has a version with a sim card to but this device has NO camera
so the app will look for a camera and will find none

i dont know what will happen then but apple is testing apps on iPads now to since its release date is coming soon
bear.cahill (22) [Avatar] Offline
Re: PicDecor
Actually, the "Sim" check is checking to see if the app is running in the simulator.

If not, it uses the camera. If it is in the simulator, it uses the default source of the photo album.