iphone-3gs

recorder works on iPhone 3GS but not on iPhone 3G

瘦欲@ 提交于 2019-12-09 19:33:17
问题 I have a AVAudioRecorder, which gets initialized like: _recorder = [AVAudioRecorder alloc]; NSMutableDictionary *recordSettings = [[[NSMutableDictionary alloc] initWithCapacity:2] autorelease]; [recordSettings setObject:[NSNumber numberWithInt:kAudioFormatMPEG4AAC] forKey: AVFormatIDKey]; [recordSettings setObject:[NSNumber numberWithInt:AVAudioQualityLow] forKey: AVEncoderAudioQualityKey]; NSURL *url = [NSURL fileURLWithPath:[self getActualSoundPath]]; [_recorder initWithURL:url settings

recorder works on iPhone 3GS but not on iPhone 3G

谁都会走 提交于 2019-12-04 16:23:35
I have a AVAudioRecorder, which gets initialized like: _recorder = [AVAudioRecorder alloc]; NSMutableDictionary *recordSettings = [[[NSMutableDictionary alloc] initWithCapacity:2] autorelease]; [recordSettings setObject:[NSNumber numberWithInt:kAudioFormatMPEG4AAC] forKey: AVFormatIDKey]; [recordSettings setObject:[NSNumber numberWithInt:AVAudioQualityLow] forKey: AVEncoderAudioQualityKey]; NSURL *url = [NSURL fileURLWithPath:[self getActualSoundPath]]; [_recorder initWithURL:url settings:recordSettings error:nil]; [_recorder setDelegate:self]; This code works perfectly in my Simulator and on

3G iPhone Device “finished running” but app won't load

China☆狼群 提交于 2019-11-30 09:16:38
I'm trying to run an app on a 3G device. Xcode says that the app has "Finished running on the iPhone" but the app will not deploy. I think I have the architectures configured correctly (see image below) any help would be great, thanks I figured this out finally. In the Info.plist there's a "Required device capabilities" setting that was set to armv7. I was aware of the armv6 and armv7 requirements in the target build settings for the 3G model but not in the plist. here's a screenshot. hope it helps anyone else stuck with something similar: Your configuration looks fine. I’ve seen this before;

3G iPhone Device “finished running” but app won't load

徘徊边缘 提交于 2019-11-29 14:52:53
问题 I'm trying to run an app on a 3G device. Xcode says that the app has "Finished running on the iPhone" but the app will not deploy. I think I have the architectures configured correctly (see image below) any help would be great, thanks 回答1: I figured this out finally. In the Info.plist there's a "Required device capabilities" setting that was set to armv7. I was aware of the armv6 and armv7 requirements in the target build settings for the 3G model but not in the plist. here's a screenshot.

Get iPhone's camera resolution?

早过忘川 提交于 2019-11-29 11:55:39
Is there any way to get the resolution of the iPhone's camera? Apparently the 3G has 1200x1600, and 3GS has 1500x2000, but how do I obtain these values from inside my code (without taking the picture). I need them to make some affine transform to the camera preview. I could detect if it's 3G or 3GS to hardcode these values, but it's just the last resort. I think your "last resort" is a good solution. What's wrong with detecting the model? The hardware isn't going to change for either of those models.. The only concern you might have is if the 3GSX-R or something comes out with a 16mpx camera.

Picking video from PhotoLibrary with UIImagePickerController in OS 3.1

家住魔仙堡 提交于 2019-11-29 08:39:18
I am trying to pick a video from the photo library. In principle I know how to do it you set the mediaType of the image picker to an NSArray with kUTTypeMovie as its only object. But this doesn't seem to work on an iPhone 3G. Since OS 3.1 you can store videos you've received in your photo library. When you start the build in 'Photos' application the videos appear. However this doesn't work using the UIImagePickerController. The controller reports that it only supports images. When you try to set the mediaType of the controller with kUTTypeMovie it actually crashes. If you don't specify the

iPhone app does not run on old device (3G, 3GS, …) [duplicate]

不问归期 提交于 2019-11-29 07:12:16
问题 Possible Duplicate: Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK? I have developed an app which works on iPhone 4 (iOS 4.3 & 5) (which used during developing). Now I have tried to test on 3GS (iOS 4.3.3) and 3G(iOS 4.2). But app does not load into these devices. I can see following messages on consol when try to deploy to device. Sat Jan 1 17:27:38 unknown lockdownd[16] <Error>: 2ff68000 handle_connection: Could not receive USB message #6 from Xcode. Killing

Rotate MapView using Compass orientation

六月ゝ 毕业季﹏ 提交于 2019-11-29 02:26:40
Is it possible to have an embedded MKMapView rotate to always face the direction the iPhone is facing? Basically I want to mimic the Map app rotation feature on my own app. I see that the iPhone SDK does not expose the functionality. However, I wonder if it would work to rotate the entire view using CGAffineTransformMakeRotate . Would it affect tapping and zooming? Is there a better way? To rotate the mapView but not the annotations you could use the following code to compensate for the maps rotation. - (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading

Fast sine/cosine for ARMv7+NEON: looking for testers…

邮差的信 提交于 2019-11-28 18:08:36
问题 Could somebody with access to an iPhone 3GS or a Pandora please test the following assembly routine I just wrote? It is supposed to compute sines and cosines really really fast on the NEON vector FPU. I know it compiles fine, but without adequate hardware I can't test it. If you could just compute a few sines and cosines and compare the results with those of sinf() and cosf() it would really help. Thanks! #include <math.h> /// Computes the sine and cosine of two angles /// in: angles = Two

Get iPhone's camera resolution?

风流意气都作罢 提交于 2019-11-28 05:00:54
问题 Is there any way to get the resolution of the iPhone's camera? Apparently the 3G has 1200x1600, and 3GS has 1500x2000, but how do I obtain these values from inside my code (without taking the picture). I need them to make some affine transform to the camera preview. I could detect if it's 3G or 3GS to hardcode these values, but it's just the last resort. 回答1: I think your "last resort" is a good solution. What's wrong with detecting the model? The hardware isn't going to change for either of