Top "Uikit" questions

UIKit (not to be confused with the front-end framework GetUIKit) is the object-oriented framework that is responsible for most of the iOS user interface.

add image to uitableview cell

I have a tableview, how can I add image to the left of this cells?

ios uitableview uikit uiimage
iPhone keyboard, Done button and resignFirstResponder

This is probably a dumb question, but I can't find the answer in the docs. Did the "Done" button on …

iphone objective-c cocoa-touch keyboard uikit
How do you get an iPhone's device name

If you open Settings -> General -> About, it'll say Bob's iPhone at the top of the screen. …

ios uikit
UIView's frame, bounds, center, origin, when to use what?

UIView has the properties frame, bounds, center, and origin, and they all seem to be interrelated. Most of the time, …

uiview uikit frame bounds
How to calculate the width of a text string of a specific font and font-size?

I have a UILabel that displays some chars. Like "x", "y" or "rpm". How can I calculate the width of …

iphone cocoa-touch uikit
How do I wrap text in a UITableViewCell without a custom cell

This is on iPhone 0S 2.0. Answers for 2.1 are fine too, though I am unaware of any differences regarding tables. It …

ios objective-c cocoa-touch uikit iphone-sdk-2
UIButton: Making the hit area larger than the default hit area

I have a question dealing with UIButton and its hit area. I am using the Info Dark button in interface …

ios cocoa-touch uibutton uikit
Displaying a stock iOS notification banner when your app is open and in the foreground?

When Apple's official iOS Messages app is open and in the foreground, new messages from other contacts trigger a stock, …

ios uikit apple-push-notifications uilocalnotification toast
Passing arguments to selector in Swift

I'm programmatically adding a UITapGestureRecognizer to one of my views: let gesture = UITapGestureRecognizer(target: self, action: #selector(self.handleTap(modelObj:…

ios swift uikit selector
Using a custom image for a UITableViewCell's accessoryView and having it respond to UITableViewDelegate

I'm using a custom drawn UITableViewCell, including the same for the cell's accessoryView. My setup for the accessoryView happens by …

ios cocoa-touch uitableview uikit