Questions tagged [iphone-4]

The iPhone 4 is the fourth version of the iPhone released by Apple, Inc. Use this tag for questions specific to this platform. Don't confuse with the iPhone 4S.

The iPhone 4 is the fourth version of the iPhone released by Apple, Inc. Use this tag for questions specific to this platform. Don't confuse with the iPhone 4S.

Resource

303 questions
10
votes
3 answers

CGContext text drawing doesn't scale up on iPhone 4

I am trying to create an app that scales up nicely on the iPhone 4. Currently most of it scales up perfectly, except for one crucial piece: the text that I draw inside a CALayer, inside its drawInContext: method. Here is my code: -…
Carter Allen
  • 1,984
  • 15
  • 22
9
votes
2 answers

iPhone 4 Unlocking. NCK-Bruteforce Research

Every iPhone has a NORID (8 bytes) & CHIPID (12 bytes) unique to each phone. Where is this stored? NOR? seczone? Can it be dumped? An iPhone requires a NCK to unlock. From what I understand the NCK is 15 characters. Is it numeric, alpha or…
d123
  • 1,497
  • 2
  • 12
  • 22
8
votes
1 answer

Images blurry in iphone 4 mobile safari

I'm making a mobile web app and am having some trouble with my images. They look great on my desktop but all blurry in the iPhone. I guess it's cause' of the retina display and that mobile safari needs to double the size of the web sites. Is there…
Johan B
  • 1,976
  • 1
  • 21
  • 40
8
votes
3 answers

how to access Microsoft Exchange server from iPhone application?

In my app i want to access exchange server for events and contacts, how can i achieve this? Is there any API for this or something else? Thanks, I greatly appreciate any help.
Ankur
  • 5,086
  • 19
  • 37
  • 62
8
votes
1 answer

colorWithPatternImage with iPhone 4 Retina Display (image@2x.png)

Thanks to SO's search function blowing up whenever I enter "@2x", it's difficult to tell whether this has already been asked... I've been using colorWithPatternImage: to build tiled background images for my various views. However, these predictably…
Greg Combs
  • 4,252
  • 3
  • 33
  • 47
7
votes
1 answer

Understanding iPhone resolution

I'm using phonegap to export a very simple html5 page to an iphone app and running into this silly issue. iPhone resolution is 960x640. When I set the canvas to those dimensions, it seems way too big.
Skylervich
  • 150
  • 1
  • 8
7
votes
3 answers

How could I create a shortcut on desktop in iOS through an app

What do I mean is that I want to use the app to create a shortcut with icon on the desktop which will allow user to speed access some functions of this app. How could I do that, any suggestions? Or anyone have experience with this. An…
david
  • 139
  • 1
  • 4
  • 10
7
votes
1 answer

iOS: self.view.bounds does not fill the whole window

I am doing some simple testing of adding CALayer to a UIView. In my main controller class of an iPhone 4 app, I implemented the viewDidLoad method as such: - (void)viewDidLoad { [super viewDidLoad]; NSLog(@"%s", __PRETTY_FUNCTION__); …
Anthony Kong
  • 37,791
  • 46
  • 172
  • 304
7
votes
3 answers

NSString sizeWithFont:constrainedToSize: returning incorrect height on retina displays

I think I have found an edge case for sizeWithFont:constrainedToSize: where, on a retina display, it will sometimes (it seems based on word wrapping) returns a height 1 line taller than is actually needed, and more importantly than is it actually…
eric
  • 391
  • 2
  • 13
7
votes
2 answers

Drawing a rectangle on top of a AVCaptureVideoPreviewLayer, possible?

I've been banging my head on this for a few days now. I want to draw a rectangle on top of a CALayer (AVCaptureVideoPreviewLayer), which just happens to be the video feed from the camera on an iPhone4. here's part of my setup; //(in function for…
Slade Villena
  • 131
  • 2
  • 4
7
votes
1 answer

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

I have a button with an image set through interface builder. The original image is SearchImage.png and the high rez version is SearchImage@2x.png. I'm absolutely sure that no typos were made, and the higher resolution image is indeed exactly twice…
WoodenKitty
  • 6,521
  • 8
  • 53
  • 73
7
votes
3 answers

Simulator is not available error (Xcode 6.1)

I am about to upload the latest version of my app to the App Store, however up until this point I haven't done a whole lot of testing on iOS 7. When I go to use the simulator, I am getting the error: iPhone 4S is not available: Please select a…
user3746428
  • 11,047
  • 20
  • 81
  • 137
6
votes
1 answer

UIImagePNGRepresentation() and scale (iPhone 4 screen)

I've got some image generating code that uses UIGraphicsBeginImageContext(), UIGraphicsGetImageFromCurrentImageContext() and UIImagePNGRepresentation() to do some drawing, then save it to disk as a PNG for later use. Does UIImagePNGRepresentation()…
Amy Worrall
  • 16,250
  • 3
  • 42
  • 65
6
votes
1 answer

Do background applications *ever* quit in iOS 4?

I don't fully understand Apple's iOS 4 model, I've been poring through documentation for hours, but I still appreciate some help. Do backgrounded iPhone apps ever quit? For example, when I close a location-tracking app such as Loopt, it will be…
user375473
  • 61
  • 1
  • 3
6
votes
6 answers

iOS - How to selectively delete files older than a month in Documents Directory

I am downloading images to my app which after a few weeks the user will not care about. I download them to the app so they will not have to be downloaded every launch. The problem is I do not want the Documents folder to get bigger than it has to…
Louie
  • 5,920
  • 5
  • 31
  • 45
1
2
3
20 21