Top "Objective-c" questions

This tag should be used only on questions that are about Objective-C features or depend on code in the language.

UITableView Cell selected Color?

I have created a custom UITableViewCell. The table view is showing data fine. What I am stuck in is when …

ios objective-c uitableview selection-color
Set UIButton title UILabel font size programmatically

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

objective-c cocoa-touch ios uibutton font-size
Instantiate and Present a viewController in Swift

Issue I started taking a look of the new Swift on Xcode 6, and I tried some demo projects and tutorials. …

ios objective-c swift uiviewcontroller
What is the difference between class and instance methods?

What's the difference between a class method and an instance method? Are instance methods the accessors (getters and setters) while …

objective-c oop methods class-method instance-methods
Convert NSDate to NSString

How do I convert, NSDate to NSString so that only the year in @"yyyy" format is output to the string?

objective-c swift nsstring nsdate
How to dismiss keyboard for UITextView with return key?

In IB's library, the introduction tells us that when the return key is pressed, the keyboard for UITextView will disappear. …

iphone objective-c keyboard uitextview iphone-softkeyboard
How to load a UIView using a nib file created with Interface Builder

I'm trying to do something a bit elaborate, but something that should be possible. So here is a challenge for …

iphone objective-c ios cocoa-touch interface-builder
How do I call Objective-C code from Swift?

In Swift, how does one call Objective-C code? Apple mentioned that they could co-exist in one application, but does this …

objective-c swift
How do I animate constraint changes?

I'm updating an old app with an AdBannerView and when there is no ad, it slides off screen. When there …

ios objective-c animation autolayout ios6
How to programmatically send SMS on the iPhone?

Does anybody know if it's possible, and how, to programmatically send a SMS from the iPhone, with the official SDK / …

ios objective-c cocoa-touch sms