Loaded nib but the 'view' outlet was not set?

I added a new nib file to my project, and tried to load it. However, when I click on the toolbar icon that is suppo...

Placeholder in UITextView?

My application uses an UITextView. Now I want the UITextView to have a placeholder similar to the one you can set fo...

Best way to parse URL string to get values for keys??

I need to parse a URL string like this one: &ad_eurl=http://www.youtube.com/video/4bL4FI1Gz6s&hl=it_IT&...

Set UIButton title UILabel font size programmatically?

I need to set the font size of the title UILabel of a UIButton programmatically. ...

Loaded nib but the 'view' outlet was not set?

I added a new nib file to my project, and tried to load it. However, when I click on the toolbar icon that is suppo...

Argument of '#selector' does not refer to an '@objc' method, property, or initializer?

I sublcassed in Swift 3 a UIButton subclass that is written in Objective-C. When I try to add a target, it fails wi...

Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error??

I'm trying to link a UILabel with an IBOutlet created in my class. My application is crashing with the following er...

UIImage rounded corners?

I try to get rounded corners on a UIImage, what I read so far, the easiest way is to use a mask images. For this I u...

Receiving Error Domain=kCFErrorDomainCFNetwork Code=2 when attempting to read from ReadStream?

I'm attempting to synchronously read from a CFReadStream objected created by CFStreamCreatePairWithSocketToHost. The...

How do I create a UIView subclass with a transparent gradient background??

I want to create a custom UIView that has a transparent gradient background in order to make text more visible over ...

How would you construct and interact with a grid like a Sudoku board??

What do you think is the best way to implement an interactive grid similar to a Sudoku board for a native iPhone app...

Attempt to present UIViewController on UIViewController whose view is not in the window hierarchy?

Just started using Xcode 4.5 and I got this error in the console: Warning: Attempt to present < finishViewCon...

What's the height of a UITabBar on iOS 8, iOS 9, iOS 10, and iOS 11??

The height of the UITabBar seems to have changed between iOS 7 and 8/9/10/11. I'm posting this question for others t...

delegate and datasource methods for UITableView?

Can anyone list delegate methods and data source methods for UITableView? Are delegates and data sources methods ar...

Adding white status bar?

I'm trying to add a white status bar to my ViewController like that: override var preferredStatusBarStyle: UIStatus...