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.

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 …

ios cocoa-touch uikit uilabel text-alignment
How to get the screen width and height in iOS?

How can one get the dimensions of the screen in iOS? Currently, I use: lCurrentWidth = self.view.frame.size.width; …

cocoa-touch ios uikit screen
How do I size a UITextView to its content?

Is there a good way to adjust the size of a UITextView to conform to its content? Say for instance …

ios cocoa-touch autolayout uikit uitextview
How to change Navigation Bar color in iOS 7?

How do I change the Navigation Bar color in iOS 7? Basically I want to achieve something like the Twitter Nav …

ios ios7 storyboard uikit uinavigationbar
UILabel text margin

I'm looking to set the left inset/margin of a UILabel and can't find a method to do so. The …

ios cocoa-touch uikit uilabel
Adjust UILabel height depending on the text

Consider I have the following text in a UILabel (a long line of dynamic text): Since the alien army vastly …

ios cocoa-touch uikit uilabel
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 …

ios uitableview cocoa-touch uikit
iOS - Dismiss keyboard when touching outside of UITextField

I'm wondering how to make the keyboard disappear when the user touches outside of a UITextField.

ios cocoa-touch uitextfield uikit
UICollectionView spacing margins

I have a UICollectionView which shows photos. I have created the collectionview using UICollectionViewFlowLayout. It works good but I would …

ios uicollectionview uikit
Aligning text and image on UIButton with imageEdgeInsets and titleEdgeInsets

I would like to place an icon left of the two lines of text such that there's about 2-3 pixels …

iphone ios uibutton uikit