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.

What's the point of NSAssert, actually?

I have to ask this, because: The only thing I recognize is, that if the assertion fails, the app crashes. …

ios iphone cocoa-touch uikit nsassert
iOS: UIView subclass init or initWithFrame:?

I made a subclass of UIView that has a fixed frame. So, can I just override init instead of initWithFrame:? …

ios uiview uikit subclass init
How to Make the scroll of a TableView inside ScrollView behave naturally

I need to do this app that has a weird configuration. As shown in the next image, the main view …

swift uitableview uiscrollview uikit uipageviewcontroller
How do you draw a line programmatically from a view controller?

I have a UIViewController. How do I draw a line in one of its programmatically created views?

ios objective-c uiview uikit
Multiline label in UIStackView

When putting multiline label (with linebreak set to Word Wrap) into a stack view, the label immediately loses the linebreak …

ios uikit uilabel xcode7 uistackview
calculating height of UITabBar

I'm writing an app that uses UITabBar for parts of the navigation. I'm also using UIScrollView for presenting more information …

iphone cocoa-touch uikit uiscrollview uitabbar
How to ignore touch events and pass them to another subview's UIControl objects?

I have a custom UIViewController whose UIView takes up a corner of the screen, but most of it is transparent …

ios cocoa-touch uikit uiresponder
How to set status bar's content color to white on iOS 7

My App’s background colour is black. Cause the whole view is below the status bar on iOS 7, the content …

ios cocoa-touch uikit ios7
How to scale down a UIImage and make it crispy / sharp at the same time instead of blurry?

I need to scale down an image, but in a sharp way. In Photoshop for example there are the image …

ios image uikit core-graphics scaling
How to do a native "Pulse effect" animation on a UIButton - iOS

I would like to have some kind of pulse animation (infinite loop "scale in - scale out") on a UIButton …

ios objective-c animation uikit