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.

How can we programmatically detect which iOS version is device running on?

I want to check if the user is running the app on iOS less than 5.0 and display a label in …

iphone objective-c ios cocoa-touch ios4
How can I make a clickable link in an NSAttributedString?

It's trivial to make hyperlinks clickable in a UITextView. You just set the "detect links" checkbox on the view in …

ios objective-c hyperlink uitextview nsattributedstring
How to use NSJSONSerialization

I have a JSON string (from PHP's json_encode() that looks like this: [{"id": "1", "name":"Aaa"}, {"id": "2", "name":"Bbb"}] I …

ios objective-c json nsdictionary
How to sort a NSArray alphabetically?

How can I sort an array filled with [UIFont familyNames] into alphabetical order?

objective-c sorting
UIView frame, bounds and center

I would like to know how to use these properties in the right manner. As I understand, frame can be …

objective-c ios uiview frame bounds
NSDate get year/month/day

How can I get the year/month/day of a NSDate object, given no other information? I realize that I …

objective-c nsdate nsdatecomponents nscalendar
Convert an NSURL to an NSString

I have an app where the user can choose an image either from the built-in app images or from the …

ios objective-c swift nsstring nsurl
Get button click inside UITableViewCell

I have a view controller with a table view and a separate nib for the table cell template. The cell …

ios objective-c uitableview uibutton
Objective-C: Calling selectors with multiple arguments

In MyClass.m, I've defined - (void) myTest: (NSString *) withAString{ NSLog(@"hi, %@", withAString); } and the appropriate declaration in MyClass.h . …

objective-c selector
How to set the title of UIButton as left alignment?

I need to display the email address from left side of a UIButton, but it is being positioned in the …

objective-c uibutton