Tag: cocoa-touch

61 votes
18 answers
2K views
UITableViewCell, show delete button on swipe

How do I get the delete button to show when swiping on a UITableViewCell? The event is never raised and the de

avatar
Jesenia
0 1 0 9
asked 07 September, 2021
56 votes
21 answers
339 views
Giving UIView rounded corners

My login view has a subview which has a UIActivityView and a UILabel saying "Signing In…". This subview has

avatar
Elicia
0 1 0 9
asked 07 September, 2021
60 votes
9 answers
1.6K views
What does the NS prefix mean?

Many classes in Cocoa/Cocoa Touch have the NS prefix. What does it mean?

avatar
Serina
0 1 0 9
asked 07 September, 2021
59 votes
30 answers
1.1K views
Attempt to present UIViewController on UIViewController whose view is not in the window hierarchy

Just started using Xcode 4.5 and I got this error in the console: Warning: Attempt to present < finishV

avatar
Percy
0 1 0 9
asked 07 September, 2021
53 votes
30 answers
736 views
Placeholder in UITextView

My application uses an UITextView. Now I want the UITextView to have a placeholder similar to the one you can

avatar
Corey
0 1 0 9
asked 07 September, 2021
62 votes
30 answers
2.3K views
Eliminate extra separators below UITableView

When I set up a table view with 4 rows, there are still extra separators lines (or extra blank cells) below th

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
50 votes
30 answers
2.5K views
Loaded nib but the &apos;view&apos; outlet was not set

I added a new nib file to my project, and tried to load it. However, when I click on the toolbar icon that is

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
48 votes
30 answers
1.5K views
Can I embed a custom font in an iPhone application?

I would like to have an app include a custom font for rendering text, load it, and then use it with standard U

avatar
Venice
0 1 0 9
asked 07 September, 2021
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
43 votes
30 answers
2.8K views
Xcode - How to fix &apos;NSUnknownKeyException&apos;, 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
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.7K 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
67 votes
30 answers
439 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
56 votes
30 answers
3.1K views
How would I create a UIAlertView in Swift?

I have been working to create a UIAlertView in Swift, but for some reason I can't get the statement right

avatar
Nidia
0 1 0 9
asked 07 September, 2021