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.

How can I rotate an UIImageView by 20 degrees?

What do I have to do, if I need to rotate a UIImageView? I have a UIImage which I want …

ios iphone cocoa-touch uiimageview uikit
How can I fill an NSArray dynamically?

I have a for loop. Inside that loop I want to fill up an NSArray with some objects. But I …

iphone objective-c uikit nsmutablearray nsarray
Hiding the Keyboard when losing focus on a UITextView

So I have a UITextView that I'm using to allow the user to submit some text. My problem is, I …

iphone objective-c cocoa-touch uikit uitextview
iOS Playground doesn't show UI preview

I've created a simple playground with XCode 7.1 and I've typed this simple code: import UIKit import XCPlayground var str = "Hello, …

ios swift xcode uikit swift-playground
Draw dotted (not dashed!) line, with IBDesignable in 2017

It's easy to draw a dashed line with UIKit. So: CGFloat dashes[] = {4, 2}; [path setLineDash:dashes count:2 phase:0]; [path stroke]; Is …

ios swift uiview uikit
How to draw a smooth circle with CAShapeLayer and UIBezierPath?

I am attempting to draw a stroked circle by using a CAShapeLayer and setting a circular path on it. However, …

ios uikit core-graphics calayer cashapelayer
Checking if a UIViewController is about to get Popped from a navigation stack?

I need to know when my view controller is about to get popped from a nav stack so I can …

iphone objective-c uikit uiviewcontroller uinavigationbar
How to change the corner radius of UISegmentedControl?

Is it possible to change the corner radius of UISegmentedControl? I have tried the following approach which we use to …

ios cocoa-touch uiview uikit uisegmentedcontrol
Does swift playground support UIKit?

I tried to create a UILabel in playground but failed. Does playground only support OS X development for now?

uikit swift swift-playground
How to hide UITextField border?

I have a UITextField and I am trying to make the UITextField border invisible so that the background and UITextField …

xcode uikit uitextview border