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.

Are there strongly-typed collections in Objective-C?

I'm new to Mac/iPhone programming and Objective-C. In C# and Java we have "generics", collection classes whose members can …

objective-c generics data-structures collections strong-typing
Using an NSString in a switch statement

Is it possible to use an NSString in a switch statement? Or is it better to just use if / else …

objective-c nsstring switch-statement
How to create a custom UITableViewCell programmatically using AutoLayout

I'm trying to implement a UITableView that will behave similarly to the timeline of a twitter client. Right now I'm …

ios objective-c uitableview constraints autolayout
Programmatically retrieve memory usage on iPhone

I'm trying to retrieve the amount of memory my iPhone app is using at anytime, programmatically. Yes I'm aware about …

ios objective-c iphone cocoa-touch memory
How to remove subviews in Objective-C?

I have added UIButton and UITextView as subviews to my view programmatically. notesDescriptionView = [[UIView alloc]initWithFrame:CGRectMake(0,0,320,460)]; notesDescriptionView.backgroundColor = [UIColor …

objective-c subview
How to stop unwanted UIButton animation on title change?

In iOS 7 my UIButton titles are animating in and out at the wrong time - late. This problem does not …

objective-c swift ios7 uibutton uikit
Difference between framework and static library in xcode4, and how to call them

I am quite new to xcode and objective-c. I want to ask a very basic question. I saw that when "…

objective-c xcode4 static-libraries
UITextField "value changed" not firing when field is updated

I have an IBAction that I have connected to a UITextField element in Interface Builder. (Firing on "value changed" event) …

objective-c ios cocoa-touch interface-builder
Centering subview's X in autolayout throws "not prepared for the constraint"

I have a custom UIView subclass which is being initialized via a nib. In -awakeFromNib, I'm creating a subview and …

ios objective-c autolayout nslayoutconstraint uiview-hierarchy
NSURLConnection sendAsynchronousRequest:queue:completionHandler: making multiple requests in a row?

I have been using NSURLConnection's sendAsynchronousRequest:queue:completionHandler: method which is great. But, I now need to make multiple requests …

objective-c ios ios5 nsurlconnection