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.

Resizing UITableView to fit content

I am creating an app which will have a question in a UILabel and a multiple choice answers displayed in …

ios objective-c uitableview sizetofit
How to tell when UITableView has completed ReloadData?

I am trying to scroll to the bottom of a UITableView after it is done performing [self.tableView reloadData] I …

objective-c uitableview reloaddata
Creating a selector from a method name with parameters

I have a code sample that gets a SEL from the current object, SEL callback = @selector(mymethod:parameter2); And I …

objective-c selector
Execute a terminal command from a Cocoa app

How can I execute a terminal command (like grep) from my Objective-C Cocoa application?

objective-c cocoa macos
Is there a way to remove the separator line from a UITableView?

I'm looking for a way to completely remove the separator line in a UITableView when in the plain mode. This …

objective-c cocoa-touch uikit
UITableView, Separator color where to set?

I have added a UITableView in IB and set the "delegate" and "datasource" and all is working well. What I …

ios objective-c uitableview cocoa-touch
Waiting until two async blocks are executed before starting another block

When using GCD, we want to wait until two async blocks are executed and done before moving on to the …

ios objective-c objective-c-blocks grand-central-dispatch
UIButton title text color

I'm setting text color for UIButton headingButton.titleLabel.textColor = [UIColor colorWithRed:36/255.0 green:71/255.0 blue:113/255.0 alpha:1.0]; It's not changing color same code …

ios objective-c iphone uibutton textcolor
iOS: present view controller programmatically

I'm using the presentViewController:animated:completion: method to go to another view controller. This is my code: AddTaskViewController *add = [[AddTaskViewController …

ios objective-c uiviewcontroller uistoryboard presentviewcontroller
What are best practices that you use when writing Objective-C and Cocoa?

I know about the HIG (which is quite handy!), but what programming practices do you use when writing Objective-C, and …

iphone objective-c cocoa cocoa-touch ios