iphone4

iPhone 4 resolution difficulty - @2x naming technique not working for button image

Hi. I have a button with an image set through interface builder. The original image is SearchImage.png and the high rez version is [email protected]. I'm absolutely sure that no typos were made, and the higher resolution image is indeed exactly twice the size (ie twice as tall, twice as wide) as the lower resolution image, yet the offi...

Should we take iPhone 4-sized screenshots for app store submission?

So far I haven't been able to find the specifications for the iPhone screenshots we'll submit along with our application. (It's universal, so I'm also taking iPad screenshots.) Can they / should they be of iPhone 4 resolution (640x960 instead of 320x480)? ...

Implementing Skype on the iPhone

I would like to build an app for the iPhone which uses Skype service with more features. Now I know that Fring made Skype calls available on the iPhone, so it must be feasible. The question is, how to build it in a way that it'll work as same as Skype app or Fring. In this blog post, that guy offers using "SoonR Talk", but The caveat...

How can I use AVAssetExportSession to overwrite songs in my iPhone/iPod library?

So supposedly in the iOS 4 SDK you can edit and write to the user's iTunes library. I can successfully load an AVAsset from my iPhone/iPod library, but as a quick test I'm trying to just overwrite the same file right away using AVAssetExportSession but it's always returning the status "4" which I THINK is AVAssetExportSessionStatusFailed...

iPhone 4 apps automatically scale up on iPad?

I thought I read/saw/heard something saying that apps built for iPhone 4's Retina Display would automatically run at 640x960 when installed on an iPad. However, can't find any documentation on that specific feature, and my app still runs at 320x480 when installed on an iPad. Is there a step I've missed to make this happen? Or did I jus...

Memory [ Real RAM ] used by App on IPhone 4.0 on lauch and then using UIImageview.

Hello All, I have two queries I was running a sample app which having single view controller in it implemented. When I check the memory using Instrument it was showing 3.66 MB . Wondered why it is taking so much of RAM as there is nothing much heavy in app. When I have added UIImageview with the Image having size of 25 KB,then Memory...

iOS: how to determine whether to download a normal or hires retina image?

Since the iPhone 4 came out, Apple has put forward the @2x filename technique to easily implement higher resolution pictures. That's great, but how about dynamic image downloading? Indeed, in my application I would like to avoid image scaling and unnecessary big downloads as much as possible, which could negatively impact the performanc...

iPhone 4 Camera Specifications - Field of View / Vertical-Horizontal Angle

Hi to all, Does someone know the field of view values for the new iPhone4 camera? I'm doing some AR app's, and I want to know the horizontal and vertical angle of the rear camera. Thanks! ...

CoreGraphics slower on iPhone4 than on 3G/3GS

I have a chart drawn with CoreGraphics. This chart can be scrolled horizontally and it's drawn as we scroll it. The problem is that on 3G/3GS the speed and performance of the scroll is good but on iPhone 4 is slower than expected. I suppose this is a issue related to the higher resolution of the iPhone 4. Is that correct? How can I i...

iPhone 4 nib sizes

I want to do an iPhone 4 only app that uses the iAd AdBannerView. When I add this it has a fixed size of 320x50. How does this work with the higher resolution? Can someone explain how the higher resolution of the iPhone4 vs the previous devices work in relation to UIView's in xib files. Do I create the UIView with the higher resolution ...

How can I tell my app is running on iPhone4 so I can load the correct size of image remotely?

I know the locally I can use the @2x images, how do I do this for remote images? I just need to know whether I am on iPhone / iPhone 4 and then determine the image width & height to load. ...

how many days can a app live in background

hi, I am actually doing some daily checks of the app assuming the app will be closed and opened daily. It works fine for 3.1 devices. My question is how many days can a app live in background on iPhone 4.0 OS. If it lives for a long time what are the best ways to make daily schedules to contact my backend server ? ...

CLLocationManager does not worked in iphone 4 ios.

hi all, My Mac os version is 10.6.4 and xcode version is 3.2.3.I'm using WhereAmI program.I have used CLLocationManager to get current location it works fine in iphone 3 ios but does not works in iphone 4 ios.Can anybody tell me what is the problem.I'm not understanding what is the problem.I thing this problem is related to GPS Sett...

Best options to integrate my application with the Nike+ features of the iPhone 4G

How can I integrate my application with the Nike+ features of the iPhone 4G. I want to access the data captured and send that to my own applications. There seems to be limited information available on this topic. Any help is greatly appreciated. ...

Retina display compatibility

For our iPhone app, we are using 50 x 50 user image (from facebook). It works fine for iPhone 3G and 3GS but not for iPhone 4 due to its high resolution display. For iPhone 4 we tried to send 100 x 100 (variable height) image but it is not working for obvious reasons. Any thought? ...

Easy way of exporting @2x images for retina display?

I am creating a lot of webviews that must be compatible with both the iPhone 4 retina display and pre-iPhone 4 devices. It's a pain in the ass to export multiple files for each image. Is there a script or utility to automate this process? ...

UIScreen scale factor is 1.0 in iPhone Simulator 4.0.2 ?

Am I missing something about the @2x graphics on the iPhone 4? I'm running the 4.0.2 SDK in the iPhone Simulator, but UIScreen has a scale of 1.0, isn't it supposed to be 2.0 and load high res images automatically? here's what's I'm testing: NSLog(@"system version: %@", [[UIDevice currentDevice] systemVersion]); NSLog(@"scale factor...

iPhone 4 Retina "apple-touch-startup-image" for Web-apps

This has been asked multiple times here, but without a solid and understandable answer. This is a web-app, not a native-app. I'm using: <link rel="apple-touch-startup-image" href="images/startup.png" /> to display the startup image. It loads fine if the image's resolution is 320x460. I tried using the retina's resolution which is 640...

Problem playing audio file with AVAudioPlayer on iPhone 4 in iOS 4.1

I am using a simple bit of code to play an audio file: NSString *pathToMusicFile1 = [[NSBundle mainBundle] pathForResource:@"song" ofType:@"mp3"]; mySong1 = [[AVAudioPlayer alloc]initWithContentsOfURL:[NSURL fileURLWithPath:pathToMusicFile1] error:NULL]; NSLog(@"Song1 Loaded"); mySong1.numberOfLoops = -1; mySong1.volume = 1.0; [mySong1...

Play next song automatically in Iphone

Hi, I got the background Process successfully. But the problem was when AVAudio player get finished it won't play automatically next song. But In Simulator it will work fine. In device only the Problem. Any one worked Out??? ...