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.

Move view with keyboard using Swift

I have an app that has a text field on the lower half of the view. This means that when …

ios swift uikit nsnotificationcenter uikeyboard
How to programmatically get iOS status bar height

I know that currently the status bar (with the time, battery, and network connection) at the top of the iPhone/…

ios uikit retina-display
How to find topmost view controller on iOS

I've run into a couple of cases now where it would be convenient to be able to find the "topmost" …

ios objective-c uiview uiviewcontroller uikit
How to lose margin/padding in UITextView?

I have a UITextView in my iOS Application, which displays a large amount of text. I am then paging this …

ios iphone cocoa-touch uikit uitextview
Changing Placeholder Text Color with Swift

I have a design that implements a dark blue UITextField, as the placeholder text is by default a dark grey …

ios swift uikit
How do you add multi-line text to a UIButton?

I have the following code... UILabel *buttonLabel = [[UILabel alloc] initWithFrame:targetButton.bounds]; buttonLabel.text = @"Long text string"; [targetButton addSubview:buttonLabel]; […

ios cocoa-touch uibutton uikit
How to Rotate a UIImage 90 degrees?

I have a UIImage that is UIImageOrientationUp (portrait) that I would like to rotate counter-clockwise by 90 degrees (to landscape). I …

ios objective-c uiimage uikit core-graphics
How can I delay a method call for 1 second?

Is there an easy way delay a method call for 1 second? I have a UIImageView that reacts on a touch …

ios objective-c iphone cocoa-touch uikit
iOS start Background Thread

I have a small sqlitedb in my iOS device. When a user presses a button, I fetch the data from …

objective-c ios multithreading uikit core-foundation
CGRectMake, CGPointMake, CGSizeMake, CGRectZero, CGPointZero is unavailable in Swift

After converting code to latest swift 3.0 I am shown this error. Also tell me solution for CGSize = CGSizeMake(0,0) static var …

uikit swift3 xcode8 ios10