ipad-2

iPad: PNG Crush error

一个人想着一个人 提交于 2019-11-30 06:19:01
问题 I am trying port my iPad project to latest iPad 2. I installed iOS 4.3 SDK with Xcode 4.0. When i try to build my project, i'm getting the following error. I don't know why am i getting this error. Could someone help me to resolve this build error? While reading /Users/username/Desktop/iPAD/MyProject/trunk/Resourses/images/top_bar.png pngcrush caught libpng error: Not a PNG file.. Could not find file: /Users/username/Library/Developer/Xcode/DerivedData/Project-fmhveawksgdtnraclfizuhrekmzi

Run multiple AVCaptureSessions or add multiple inputs

社会主义新天地 提交于 2019-11-30 03:29:51
I want to display the stream of the front and the back facing camera of an iPad2 in two UIViews next to each other. To stream the image of one device I use the following code AVCaptureDeviceInput *captureInputFront = [AVCaptureDeviceInput deviceInputWithDevice:[AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo] error:nil]; AVCaptureSession *session = [[AVCaptureSession alloc] init]; session addInput:captureInputFront]; session setSessionPreset:AVCaptureSessionPresetMedium]; session startRunning]; AVCaptureVideoPreviewLayer *prevLayer = [AVCaptureVideoPreviewLayer layerWithSession

exc bad access code 2

筅森魡賤 提交于 2019-11-29 18:07:20
问题 I have been struggling with this error for the last 3 days and no luck. I'm developing a combined app with uiviewcontrollers and uitableviewcontrollers and in table views I click the add button and it crashes. (no core data coding has been added yet). I have even enabled NSzombies and Guard Malloc and the following points of crashing are on these codes. Please help as I need to try chase a deadline and I don't want to go further in development with the gremlin in the project. 0x0 into

iPad: PNG Crush error

怎甘沉沦 提交于 2019-11-28 17:08:34
I am trying port my iPad project to latest iPad 2. I installed iOS 4.3 SDK with Xcode 4.0. When i try to build my project, i'm getting the following error. I don't know why am i getting this error. Could someone help me to resolve this build error? While reading /Users/username/Desktop/iPAD/MyProject/trunk/Resourses/images/top_bar.png pngcrush caught libpng error: Not a PNG file.. Could not find file: /Users/username/Library/Developer/Xcode/DerivedData/Project-fmhveawksgdtnraclfizuhrekmzi/Build/Products/Debug-iphoneos/MyApp-Upgraded.app/top_bar.png Krishna Did you check whether the file Users

iPad 2 detection

落花浮王杯 提交于 2019-11-27 13:22:35
Since I don't have iPad 2, I need to know what it returns when calling [[UIDevice currentDevice] model]. I thought it returns just "iPad" but it seems I'm wrong. Can somebody let me know? Thanks Marcelo Cantos Check for an iPad with a camera. BOOL isIPad2 = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad && [UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera]); Note that it is generally better to detect specific features rather than make blanket assumptions based on model/version detection. For instance, if you need a camera, then test for the camera

iPad 2 detection

不羁的心 提交于 2019-11-26 18:16:43
问题 Since I don't have iPad 2, I need to know what it returns when calling [[UIDevice currentDevice] model]. I thought it returns just "iPad" but it seems I'm wrong. Can somebody let me know? Thanks 回答1: Check for an iPad with a camera. BOOL isIPad2 = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad && [UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera]); Note that it is generally better to detect specific features rather than make blanket assumptions