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 do I hide/show the right button in the Navigation Bar

I need to hide the right button in the Navigation Bar, then unhide it after the user selects some options. …

ios objective-c uibarbuttonitem rightbarbuttonitem
How to remove gesture recogniser

SO, I am adding a gesture recogniser to an overlay view. When tapped on screen i want this overlay to …

iphone objective-c ios ipad ios4
Detected a case where constraints ambiguously suggest a height of zero

After updating to Xcode 6.1 beta 2 when I run my app that contains tableview cells, the debug assistant says: Warning once …

ios objective-c swift xcode uitableview
How to see if an NSString starts with a certain other string?

I am trying to check to see if a string that I am going to use as URL starts with …

ios objective-c iphone nsstring nsmutablestring
How to set a timeout with AFNetworking

My project is using AFNetworking. https://github.com/AFNetworking/AFNetworking How do I dial down the timeout? Atm with no …

objective-c ios xcode networking afnetworking
Why is @autoreleasepool still needed with ARC?

For the most part with ARC (Automatic Reference Counting), we don't need to think about memory management at all with …

objective-c memory-management xcode4.2 automatic-ref-counting
Custom completion block for my own method

I have just discovered completion blocks: completion:^(BOOL finished){ }]; What do I need to do to have my own method …

objective-c objective-c-blocks
Initializing NSDictionary

The following is in my .h file: NSDictionary *originalValues; @property (nonatomic, retain) NSDictionary *originalValues; This is the .m file to …

objective-c ios xcode nsdictionary
Converting between NSData and base64 strings

What is the easiest and fastest code to do a conversion between NSData and a base64 string? I've read a …

ios objective-c nsstring nsdata
Current view controller from AppDelegate?

Is there a way to get the current view controller from the AppDelegate? I know there is rootViewController, but that's …

objective-c ios uiviewcontroller