Questions tagged [uikit]

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.

UIKit (not to be confused with the front-end framework ) is the object-oriented framework that is responsible for most of the user interface. UIKit is part of the umbrella framework, and it is to Cocoa Touch as AppKit is to the Cocoa framework on macOS. The classes in UIKit determine the basic structure of most iOS applications as well as the majority of distinctive user interface elements that make iOS apps easily recognizable and instantly familiar.

UIKit provides the classes and protocols that lie at the foundation of any iOS application, including:

  • UIApplication
  • UIResponder
  • UIView
  • UIWindow
  • UIControl
  • UIEvent
  • UIViewController
  • UINavigationController
  • UITabBarController
  • UISplitViewController

It also provides the user interface elements with which all iOS users are familiar:

  • UIButton
  • UITextField
  • UITextView
  • UINavigationBar
  • UIToolbar
  • UITabBar
  • UISwitch
  • UILabel
  • UIScrollView
  • UITableView
  • UITableViewCell
  • UIPickerView

These lists are not exhaustive, but only meant to give a sense of the scope of the UIKit framework. A more complete list is found in the UIKit Framework Reference.

11807 questions
5
votes
3 answers

Colors Inverted when Creating UIImage from CIImage (iOS 6.0)

I've been trying a ton of different options and tricks for getting a UIImage to build properly from a CIImage. But, every time I create the CIImage its colors seem to be inverted. The most recent code I have is: NSURL *url = [[NSBundle mainBundle]…
C4 - Travis
  • 4,502
  • 4
  • 31
  • 56
5
votes
5 answers

How to get iPhone SDK 2.2.1 for Xcode 3.2?

After my upgrade to Snow Leopard and Xcode 3.2 (which I really regret a lot!!), Xcode lost all the SDK's. I'm one of those old-fashioned idiots who still want to develop for 2.2.1. But Apple does not offer me an old SDK download. Now I was clever…
HelloMoon
5
votes
3 answers

How to implement scrollViewDidScroll in UIScrollView

I'm having a problem where when I call the scrollViewDidScroll method in my subclass of UIScrollView nothing happens. Here is my code: AppDelegate.m #import "ScrollView.h" - (BOOL)application:(UIApplication *)application…
colindunn
  • 3,139
  • 10
  • 48
  • 72
5
votes
1 answer

how do I stack the UIImage together and wavering or swing in UIKit

I would like to know how this app stacks up uiimage and wavering in UIKit. I'm following this xcode: Using a UIImageView subclass with NSTimers to have images dropping down in random, but how do I catch it and stack the UIImage together ? Thanks…
Desmond
  • 5,001
  • 14
  • 56
  • 115
5
votes
0 answers

UIDatePicker crash: failing to allocate 100,000 rows

I'm getting a rare crash when using an iOS date picker. The crash is: NSInternalInconsistencyException Failed to allocate data stores for 100000 rows in section 0. Consider using fewer rows UITextField *dateinput = [[UITextField alloc]…
agent tom
  • 51
  • 2
5
votes
1 answer

UIInterfaceOrientationLandscapeLeft and UIInterfaceOrientationLandscapeRight are reversed?

The documentation says: UIInterfaceOrientationLandscapeLeft The device is in landscape mode, with the device held upright and the home button on the right side. UIInterfaceOrientationLandscapeRight The device is in landscape mode, with the device…
Jaka Jančar
  • 11,386
  • 9
  • 53
  • 74
5
votes
2 answers

Why is sizeWithFont:constrainedToSize:lineBreakMode: returning an incorrect size?

I have two possible widths for a string i want to display in a label in a table cell, and i need to compute the height so that the table cell's height is recorded correctly. however, no matter what I do for the constraining size i get the same…
Kevlar
  • 8,804
  • 9
  • 55
  • 81
5
votes
1 answer

UIScrollview contentOffset changes when removed from window

I have a weird bug concerning an UIScrollView. This view works fine, until the moment I remove it from the window (indirectly, it's a subview to a removed view). I then perform some unrelated animation ; and when I put the views where they were, the…
Eino Gourdin
  • 4,169
  • 3
  • 39
  • 67
5
votes
1 answer

How to take an NSString out of an NSMutableString?

That's somewhat confusing. NSMutableString inherits from NSString, but does that also mean that I can pass an NSMutableString anywhere safely where actually an NSString is wanted? And can I assign an NSString to an NSMutableString? How would I get…
HelloMoon
5
votes
1 answer

How to download files from internet and save in 'Documents' on iPhone?

I have a folder on my remote server that has a few .png files in it. I want to download these from within my app and store them in the apps 'Documents' folder. How can I do this?
RexOnRoids
  • 14,002
  • 33
  • 96
  • 136
5
votes
3 answers

TouchesEnded and TouchesCancelled not called

Okay I tested the following with the tabbed application template on Xcode 4.5/iOS 6. Created a tabbed application. Created a UIButton subclass called SampleButton and implemented the following mothods: - (void)touchesBegan:(NSSet *)touches …
Kirby Todd
  • 11,254
  • 3
  • 32
  • 60
5
votes
2 answers

Key-value observing for QLPreviewController.currentPreviewItemIndex

I have an object that need to be notified when a QLPreviewController changes the shown document. QLPreviewController have the property currentPreviewItemIndex that is updated when the document change. I've added my object as observer for…
jean71
  • 143
  • 6
5
votes
2 answers

What describes NSNumberFormatter -maximumSignificantDigits?

There's no text in the documentation about what that means, but it sounds very important to understand in order to not run into trouble. Does someone know what that is all about the "significant digits" of a number?
HelloMoon
5
votes
3 answers

Status bar tint color changes to black in iOS 6

I am apparently not understanding how to use the status bar tint in iOS 6. I have read this question: Change statusbar tint colour but implementing the solutions suggested there has not resolved the issue. I have configured the settings in the…
geraldWilliam
  • 4,123
  • 1
  • 23
  • 35
5
votes
0 answers

Grouped UITableView & Section Index

There's this piece of information in Apple's docs for tableView:sectionForSectionIndexTitle:atIndex:: You implement this method only for table views with a section index list — which can only be table views created in the plain style…
Rudolf Adamkovič
  • 31,030
  • 13
  • 103
  • 118
1 2 3
99
100