Questions tagged [ios-4.2]

For issues relating to using iOS, version 4.2.

iOS is an operating system for mobile devices developed by Apple Inc that they currently use in their iPhone, iPod touch and iPad devices. It is optimized for portable (including handheld) hardware with touch interfaces.

See also for further information.

310 questions
10
votes
5 answers

didRegisterForRemoteNotificationsWithDeviceToken: doesn't invoke on calling registerForRemoteNotificationTypes:?

I am working with push notifications in a navBased app. in AppDelegate.m didRegisterForRemoteNotificationsWithDeviceToken: doesn't invoke on calling registerForRemoteNotificationTypes: code looks like this: - (BOOL)application:(UIApplication…
Piscean
  • 3,069
  • 12
  • 47
  • 96
10
votes
3 answers

Generating a PDF using the new printing stuff in iOS 4.2

Historically, my app has generated confirmations as plain HTML and passed that HTML to the normal MFMailComposeViewController for emailing to the customer. I wanted to try to leverage the new printing classes in iOS 4.2 to render the HTML to a PDF…
glenc
  • 3,132
  • 2
  • 26
  • 42
9
votes
1 answer

Some questions about push notificatons?

I am working with my first app for iphone and last part is push notifications. Its my first iphone app and firs time i am dealing with push notifications. In development phase everything is working fine. now i have some questions for productions…
Piscean
  • 3,069
  • 12
  • 47
  • 96
8
votes
8 answers

Xcode with SDK 4.2 always starting iPad Simulator

Why does Xcode, after updating to SDK 4.2, always run my application in iPad Simulator instead of iPhone??? If I select iPhone Simulator as active executable it doesn't store my preference and runs the iPad simulator after any new Build & Run.
massimoksi
  • 151
  • 2
  • 10
7
votes
2 answers

Xcode 4.2 can't debug iOS 4.2.1 (8C148)

I recently updated to Xcode 4.2. I also updated my new iPad 2 and iPod (latest generation) to iOS 5. I build my app and can debug them no problem. My older iPod running iOS 4.2.1 (8C148) doesn't run and doesn't give any errors. The top center panel…
Phill Campbell
  • 1,275
  • 1
  • 9
  • 18
7
votes
3 answers

Adding images to buttons in interface builder

I want to add an image to my button instead of text. Can I do this in interface builder? Any example I can look at? Thanks Deshawn
user605957
  • 2,489
  • 6
  • 25
  • 33
7
votes
3 answers

Getting warning in iPhone: NSString may not respond to '-JSONValue'

In my iPhone app, I am making an access to the webserver to fetch the data. Here I am using JSON to retrieve the data from database. I get a warning that says: NSString may not respond to '-JSONValue' How to resolve it?
Parth Bhatt
  • 19,381
  • 28
  • 133
  • 216
7
votes
4 answers

Unit testing of static library that involves NSDocumentDirectory and other iOS App specific calls

I'm attempting to run unit tests for a static library that attempts to create/write/read a file in the document directory. Since this is a static library and not an application for the iOS, attempts to reference the NSDocumentDirectory is returning…
Shiun
  • 2,677
  • 1
  • 20
  • 20
7
votes
3 answers

Linking Error libxml2.dylib at Xcode 3.2.5 & SDK 4.2

I am trying to connect to twitter using oauth library. The library needs libxml2.dylib to be added. When adding this to SDK 4.1 or less the project build successfully. But when I use that with xcode 3.2.5 and SDK 4.2 I got errors about missing…
Noura
  • 722
  • 10
  • 24
6
votes
4 answers

UITextfield.text returns null

Assume there's code for an iphone project that is : IBOutlet UITextField* numberDisplay; @property (strong,nonatomic) IBOutlet UITextField *numberDisplay; in implementation file and @synthesize numberDisplay; in implementation file. …
6
votes
2 answers

How can i zoom in and out in a UIImageView without UIScrollView?

I'm developing an app for iOS 4.2, iPhone, in this app I download images and I save them in the internal storage (NSDocuments). Well, then I show the first image in a UIImageView. The user can drag their finger on the UIImageView (TouchesMoved),…
Luis Ascorbe
  • 1,985
  • 1
  • 22
  • 36
6
votes
1 answer

How can we create A PDF with Annotation

Can anyone tell me how I can create a PDF with a text annotation on it (so that the annotation can be visible while opening the PDF with the PDF reader in the Desktop) ? Currently I am able to create a PDF, but I am not able to set the Page level…
6
votes
1 answer

XSLT in a UIWebView using iOS SDK 4.2

Is it possible to use XSLT in a UIWebView using iOS SDK 4.2? Alternatively, is it possible to use XSLT in iOS SDK 4.2 outside of a UIWebView? I have seen similar questions to this, but they seem to be dated and refer to pre-4.0 iOS SDKs. If it is…
Erik
  • 7,479
  • 8
  • 62
  • 99
6
votes
3 answers

iOS - Dynamic Buttons

I'm trying to use dynamic buttons created via code (no IB) in my project and they appear where and how I want them but they don't fire their actions. UIButton *button1 = [UIButton buttonWithType:UIButtonTypeRoundedRect]; button1.frame =…
Mytheral
  • 3,929
  • 7
  • 34
  • 57
6
votes
5 answers

how to set uitoolbar's background similar to my navigation bar

Hello everyone: I have set a custom background for my navigation bar, it's a tint color i think that i chose from IB. Now i want to change the my uitoolbar's (added programmatically) background similar to my navigation bar, programmatically. Obliged…
Tobias
  • 579
  • 1
  • 5
  • 15
1
2
3
20 21