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 to call a View Controller programmatically?

I have looked at all the tutorials I can find on this one, and I still don't have the answer. …

ios objective-c uiviewcontroller uistoryboard presentviewcontroller
Converting NSString to NSDictionary / JSON

I have the following data saved as an NSString : { Key = ID; Value = { Content = 268; Type = Text; }; }, { Key = ContractTemplateId; Value = { Content = 65; Type = …

objective-c xcode json nsstring nsdictionary
Set UITableView content inset permanently

In my app I have a UISearchBar under UINavigationBar so it is always visible to user. In that case I …

ios objective-c uitableview uiscrollview pull-to-refresh
IPhone/IPad: How to get screen width programmatically?

Hi I'm wondering if there's a way to get the width programmatically. I'm looking for something general enough to accomodate …

iphone objective-c cocoa-touch ipad
How to add percent sign to NSString

I want to have a percentage sign in my string after a digit. Something like this: 75%. How can I have …

objective-c nsstring string-literals
How do I do base64 encoding on iOS?

I'd like to do base64 encoding and decoding, but I could not find any support from the iPhone SDK. How …

ios objective-c base64
How can I use NSError in my iPhone App?

I am working on catching errors in my app, and I am looking into using NSError. I am slightly confused …

iphone ios objective-c ios4 nserror
How to get root view controller?

I need an instance of root view controller. I tried those approaches: UIViewController *rootViewController = (UIViewController*)[[[UIApplication sharedApplication] keyWindow] rootViewController]; Returns: …

objective-c swift ios5 uiviewcontroller uinavigationcontroller
Get current date in milliseconds

Can any one give me an idea how to get the current date in milliseconds?

objective-c cocoa-touch ios date time
How do I set up a simple delegate to communicate between two view controllers?

I have two UITableViewControllers and need to pass the value from the child view controller to the parent using a …

ios objective-c iphone delegates