iphone4

iPhone 4 ignoring viewport meta tag

I have just added the following HTML to the <head> section of my iPhone web app: <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;"/> This (supposedly) limits the zoom of the page so the user can't zoom in. On the 3GS and previous versions, this tag is respected - but the iPhone...

Detect retina screen/iPhone 4 in iPhone SDK

Hi everyone In my application I am downloading some images from the web (from my server to be precise), in order to save some bandwith and especially memory on the phone, I provide them in two resolutions: 480x320 for the "old" iPhone series and in 960x640 for the iPhone 4 with the retina display. Now I need to be able to detect from wi...

completing example of CMMotionManager example listing 4-9 and 4-10

http://developer.apple.com/iphone/library/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/MotionEvents/MotionEvents.html listing 4-9 and 4-10 i tried to run the code but with no success, i run into a problem with gyroHandler. can someone post an example of a completed code, without much changing the sample listings? meaning...

iPhone 4 - no provisioned iphone os is connected

I'm trying to install an app onto an iPhone 4 and I get: no provisioned iphone os is connected I am using: Xcode 3.2.3 iTunes 9.2 iPhone 4.0 with iOS 4.0 (8A293) I have the development provisioning profile in XCode and in the phone. The Organizer window shows the iPhone 4 with a green circle next to it. I have the correct App ID i...

iphone jailbreaking for iphone 3gs which has been updated to 4.0 version

Hi, I have a question How to remove latest iphone 4.0 version from iphone 3GS(4.0 has been updated on 3GS unknowingly)? Is it can be done through jailbreaking?Please help me in this. Thanks, ...

Update UIView to ScaleFactor 2.0 for the iPhone4

I have a program running beautifully on my iPhone 4. It uses a class UIView I created (called TestView) to draw graphics using Quartz (very simply graphics such as just a few CG lines and circles). I need, however, to take advantage of the new higher resolution screen on the iPhone 4. Currently, the ensure backwards compatibility with iP...

iPhone 4 only app?

Is it possible to restrict an app to only run on an iPhone 4? I know you can have an iPad only app. And in iTunes Connect you used to be able to indicate an iPhone only app. But now in iTunes Connect it says that to restrict an app to certain devices one can use the Info.plist. Someone suggested that in the Info.plist if a FrontFacing...

Now allocating four times the memory with @2x images

Now that UIImage imageNamed is using @2x images for iOS4's retina display, there is an obvious concern that since the images are now twice the size (pixels x pixels), that they will also be twice four times the size in memory. I know everyone stated something like you have a limit of 24mb in memory for the old devices (even though that ...

Maximum size of UIImage tiles for iPhone 4

I have an iPhone app containing a large static image, which is sliced into 1024x1024 tiles and put in an UIScrollView. I'm not clear whether I can use larger tiles on the iPhone 4. If I want to support a double-res image for iPhone 4, should I: Create 2048x2048 tiles with a @2x suffix or Create 4 times as many 1024x1024 tiles and writ...

Playing movie in iPhone 3.1 and 4.0

In iPhone 3.1 I used the following code to play a movie: moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url]; moviePlayer.movieControlMode = MPMovieControlModeDefault; moviePlayer.backgroundColor = [UIColor blackColor]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playbackDidFinish:) name:...

Cover flow library does not work on iPhone 4

I'm using William Woody's cover flow implementation. When built with the iOS 3.1 SDK it works well, both on 3.1 and 4.0 devices. But when built with the 4.0 SDK it doesn't show the tiles on an iPod touch device with 4.0 (but it does in the simulator and on an iPhone device). What might be the problem? What changed that might cause this?...

iphone 4 has a GPS antenna yes or no ?

Can somebody confirm that without wifi or 3G connection, the iphone 4 can get coordinates from GPS ? On my iphone 4 i tested and i doesn't seem to work. On my ipad, i tested and without wifi or 3G i got the blue dot moving on maps. ...

while playing mpmovieplayer in iphone 0s 4.0 does not shows the statusbar

HI, I'm new to iphone development.I have created one Mpmovieplayer Application it works good but at the time of player playing it won't shows the status bar. Plz help me... what i'm doing is wrong? Before and after player playing the status bar works good... i don't know wat is the problem... Thank u... ...

App freeze and then crashes on splash screen

Hello guys, I have an iPhone App published for a while, developed under the SDK3, and everything works great. Some weeks ago, when Apple released the SDK4 I made some changes to my app to support multitasking (it plays audio in the background). In my simulator and my device (iPhone 3GS iOS4) the app runs great, there is no problem at ...

iPhone app crashing in 4.0 when switching between apps in background

Hi all, I have an iphone application which has to support multitasking. But when i open the app and do some work then close, it is going to background and when open different app and then again switch to my own app it is crashing.. Don't have idea about when i did mistake.. it is giving error like this: [__NSCFArray removeObjectAtIn...

Save the application state when it has been deleted from the background

Hi all, I am using following functions in my App delegate - (void)applicationWillResignActive:(UIApplication *)application { NSLog(@"applicationWillResignActive"); } - (void)applicationDidEnterBackground:(UIApplication *)application { NSLog(@"applicationDidEnterBackground"); } - (void)applicationWillEnterForeground:(UIA...

Changing Image quality for the iPhone 4 users in an iPhone app

I want to display an image to my users which is larger than the screen area and will overscroll to let the users drag it around and zoom in. Do I need different images with different dpi for iPhone 4 users because of the higher resolution? Or can I just set the zoom level differently depending on device? ...

Image scaling with UIImageView on iPhone

I have a custom view which is composed of a number of UIImageViews. These UIImageViews can vary in size (from 200x200 down to 50x50). The images that they display (loaded from png files) are stored in resources at the highest possible resolution (200x200), but frequently are displayed at lower resolutions. Currently I just load the UI...

background application

in my application i have a voice who play every 30 min i put my code in - (void)applicationDidEnterBackground:(UIApplication *)application it's working great on simulator and on device but when someone call me or i call someone the application will terminate and don't play the sound again :( can anybody help me to solve the problem ?...

Determine the hardware for iPhone

How can I tell if the application is running on iPhone 4 or iPhone 3GS or an iPad? I want to determine if which hardware I'm using and then provide additional functionality if it's an iPhone 4 (such as using the video light or gyro-sensor). Any help would greatly be appreciated. Thanks PS: I'm looking to determine this programmatical...