iOS

iOS is the mobile operating system running on the Apple iPhone, iPod touch, and iPad. Use this tag [ios] for questions related to programming on the iOS platform. Use the related tags [objective-c] and [swift] for issues specific to those programming languages.

61 votes
14 answers
1.3K views
Constants in Objective-C

I'm developing a Cocoa application, and I'm using constant NSStrings as ways to store key names for

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021
63 votes
30 answers
2K views
How to change the name of an iOS app?

I began an iPhone project the other day with a silly development code name, and now I want to change the name

avatar
Roger
0 1 0 9
asked 07 September, 2021
50 votes
30 answers
2.9K views
61 votes
30 answers
2K views
How can I disable the UITableView selection?

When you tap a row in a UITableView, the row is highlighted and selected. Is it possible to disable this so ta

avatar
Joseph
0 1 0 9
asked 07 September, 2021
63 votes
23 answers
2.2K views
How do I check if a string contains another string in Objective-C?

How can I check if a string (NSString) contains another smaller string? I was hoping for something like: NSS

avatar
Thurman
0 1 0 9
asked 07 September, 2021
43 votes
30 answers
2.7K views
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?

I'm trying to link a UILabel with an IBOutlet created in my class. My application is crashing with the f

avatar
Forrest
0 1 0 9
asked 07 September, 2021
53 votes
19 answers
1.9K views
performSelector may cause a leak because its selector is unknown

I'm getting the following warning by the ARC compiler: "performSelector may cause a leak because its sel

avatar
Tuan
0 1 0 9
asked 07 September, 2021
61 votes
27 answers
1.6K views
How do I sort an NSMutableArray with custom objects in it?

What I want to do seems pretty simple, but I can't find any answers on the web. I have an NSMutableArray

avatar
Stacia
0 1 0 9
asked 07 September, 2021
51 votes
30 answers
2.6K views
How can I check for an active Internet connection on iOS or macOS?

I would like to check to see if I have an Internet connection on iOS using the Cocoa Touch libraries or on mac

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
60 votes
28 answers
607 views
Transport security has blocked a cleartext HTTP

What setting do I need to put in my info.plist to enable HTTP mode as per the following error message? Tra

avatar
Luis
0 1 0 9
asked 07 September, 2021
62 votes
28 answers
720 views
Using Auto Layout in UITableView for dynamic cell layouts & variable row heights

How do you use Auto Layout within UITableViewCells in a table view to let each cell's content and subview

avatar
Freida
0 1 0 9
asked 07 September, 2021
66 votes
30 answers
616 views
How can I make a UITextField move up when the keyboard is present - on starting to edit?

With the iOS SDK: I have a UIView with UITextFields that bring up a keyboard. I need it to be able to: Allow s

avatar
Dario
0 1 0 9
asked 07 September, 2021
58 votes
27 answers
1.4K views
What's the difference between the atomic and nonatomic attributes?

What do atomic and nonatomic mean in property declarations? @property(nonatomic, retain) UITextField *userNam

avatar
Mikki
0 1 0 9
asked 07 September, 2021
67 votes
30 answers
436 views
Vertically align text to top within a UILabel

I have a UILabel with space for two lines of text. Sometimes, when the text is too short, this text is display

avatar
Sena
0 1 0 9
asked 07 September, 2021