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 to write init methods of a UIViewController in Swift

I am unable to add init method to the following UIViewController class. I need to write some code in the …

ios swift uiviewcontroller uikit designated-initializer
How to create a UIView bounce animation?

I have the following CATransition for a UIView called finalScoreView, which makes it enter the screen from the top: CATransition *…

ios iphone animation uiview uikit
How do I access my viewController from my appDelegate? iOS

I have an iOS app I created as a "view-based app" in xCode. I have only one viewController, but it …

ios uiviewcontroller uikit storyboard
Check if a subview is in a view

I'm making an app where I add a subview to a view using addSubview: on an IBAction. In the same …

ios cocoa-touch uiview uikit
viewWillDisappear: Determine whether view controller is being popped or is showing a sub-view controller

I'm struggling to find a good solution to this problem. In a view controller's -viewWillDisappear: method, I need to find …

ios iphone cocoa-touch uiviewcontroller uikit
How to disable the highlight control state of a UIButton?

I've got a UIButton that, when selected, shouldn't change state when being touched. The default behaviour is for it to …

ios cocoa-touch uibutton uikit uicontrol
How do I inspect the view hierarchy in iOS?

Is there a GUI tool that inspects the view hierarchy of an iOS app? I'm thinking about Webkit's web inspector …

ios cocoa-touch uikit
View Controllers: How to switch between views programmatically?

In short: I want to have two fullscreen views, where I can switch between view A and view B. I …

iphone uikit uiviewcontroller uitabbarcontroller
Event handling for iOS - how hitTest:withEvent: and pointInside:withEvent: are related?

While most apple documents are very well written, I think 'Event Handling Guide for iOS' is an exception. It's hard …

ios uiview uikit
How big should a UIBarButtonItem image be?

I'm looking to create my own custom Sort By Date and Sort By Number buttons that I plan on placing …

ios uikit uibarbuttonitem uibaritem