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
0
votes
2 answers

no provisioned ios device is connected

i get the message as seen in the title if i try to run my app on the device. i investigated that i have the ios 4.2.1 (8C148) on my device. whats confusing me is the fact that in xcode i only can choose the target(ios deployment target) to be 4.2…
dustin.b
  • 1,275
  • 14
  • 33
0
votes
1 answer

iOS - Using addSubView on a UIScrollView

I am trying to use this bit of code: [[myUIView layer] addSublayer: layer]; [myScrollView addSubview:myUIView]; [layer addAnimation:[self imagesAnimation] forKey:@"images"]; What I am doing to do is taking a layer that will later get a…
Mytheral
  • 3,929
  • 7
  • 34
  • 57
0
votes
1 answer

Singleton class working on 4.0 iOS and earlier version but not on 4.1 and 4.2 SDK

I am using Singleton Class to share huge data I am getting from webservice to handle, which I have done in my previous apps also. But with new ios 4.2 its not working, I can't understand the reason of it not working as it has nothing to do with new…
AKG
  • 398
  • 1
  • 5
  • 23
0
votes
1 answer

Where can I find sample code for adding effects to photos on the iPhone?

Is there any sample source codes or reference information about adding effects to photos that is available for the iPhone?
SkyEagle888
  • 1,009
  • 2
  • 18
  • 42
0
votes
1 answer

UIDatePicker crash on iOS 4.2.1

i've a problem with ios 4.2.1 and uidatepicker. My app is running on iPad and the picker is inside an UIPopoverController. On iOS 3.2 the app works fine. When i spin any wheel of the picker, the app crash with this stack trace: * Terminating app due…
Chiodo
  • 275
  • 3
  • 14
0
votes
2 answers

iPhone simulator buttons don't respond

Whenever I build an app on the simulator none of my buttons respond to clicks. I code the methods in the AppNameViewController files (both the header and the obj-c) I have the button connected to the File's Owner and the method selected in Interface…
heymrcarter
  • 678
  • 1
  • 7
  • 20
0
votes
1 answer

Why I don't get a CGContextRef

I try to get a CGContextRef from UIImage. Always my CGContextRef is 0x0 in Debugger. Here is the code: NSString *movName = imgName; NSString *path = [[NSBundle mainBundle] pathForResource:movName ofType:@"png"]; UIImage *image =…
xnz
  • 55
  • 8
0
votes
1 answer

initializing rootViewController from different xibs depending on the device the App runs on

Hey guys, I Have the following Problem: I have an IPad App and now I want it to run on IPhone also. (I know it should be the other way round, but I cant change it). So now i want to decide which view i need by using: if (UI_USER_INTERFACE_IDIOM()…
Maverick1st
  • 3,774
  • 2
  • 34
  • 50
0
votes
1 answer

About CFStreamCreatePairWithSocketToHost of IOS

What I am trying to do is to create 2 sockets to a Hostname and a Port. One connection is linked to input and output streams. One connection is linked to output stream only. The first connection is created first with…
SkyEagle888
  • 1,009
  • 2
  • 18
  • 42
0
votes
1 answer

How to auto populate phone number from iphone?

Possible Duplicate: Programmatically get own phone number in iPhone OS I am developing an iOS 4.1 application that need to get the phone number of the user. I have tried the blow code to get the phone number. But it is not working. NSString *num…
shinto Joseph
  • 1,039
  • 3
  • 16
  • 27
0
votes
1 answer

iPhone: Which encoding scheme should be used in importing CSV file into Sqlite database

In my iPhone app, I am importing CSV file into SQlite database using CHCSV parser. My CSV file contains data in European Languages containing special characters like umlaut, etc. Which encoding should I use? Should it be UTF8StringEncoding or some…
Parth Bhatt
  • 19,381
  • 28
  • 133
  • 216
0
votes
1 answer

Requesting data from Web Server on iPhone creates too much of a delay

In my iPhone app, I need to access the webserver to login into my system. The client requires that the database be on server only. So I have made an admin panel in ASP.NET and MySQL database where in I store the login information. Now when I use the…
Parth Bhatt
  • 19,381
  • 28
  • 133
  • 216
0
votes
3 answers

iPhone : How to obtain the number of lines entered in textView without consideration of width

In my iPhone app, I have a textview where in the user will input multi-line data. Now I need a solution where I can get the number of lines. I need a solution which does not have consideration of width. I need only number of lines entered by user in…
Parth Bhatt
  • 19,381
  • 28
  • 133
  • 216
0
votes
1 answer

Why does iOS 4.2 iPad update break this website layout?

I've been asked to fix a layout issue for http://www.ireland.com, which occurs on an iPad running iOS 4.2 only. The body content floats right and the header left, rather than all centred as they are on all other platforms and vendors. Anyone aware…
Denis Hoctor
  • 2,597
  • 4
  • 33
  • 51
0
votes
2 answers

UIScrollView not working with [scrollView setScrollEnabled: YES]

In my .h file, I have an IBOutlet declared like this: IBOutlet UIScrollView *scrollView; I wired my UIScrollView to File's Owner. In my .m file I have the following in viewDidLoad: [scrollView setContentSize:CGSizeMake(320, 600)]; [scrollView…
Cocoa Dev
  • 9,361
  • 31
  • 109
  • 177