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.

Detecting taps on attributed text in a UITextView in iOS

I have a UITextView which displays an NSAttributedString. This string contains words that I'd like to make tappable, such that …

ios objective-c uitextview textkit
Round two corners in UIView

A little while ago I posted a question about rounding just two corners of a view, and got a great …

ios objective-c iphone rounded-corners
How can I convert from degrees to radians?

I am trying to convert this Obj-C code to Swift code but I don't know what the equivalent of this …

ios objective-c macos swift macros
What does the property "Nonatomic" mean?

What does "nonatomic" mean in this code? @property(nonatomic, retain) UITextField *theUsersName; What is the difference between atomic and nonatomic? …

ios objective-c iphone cocoa properties
iOS: Access app-info.plist variables in code

I am working on a Universal app & would like to access the values stored in app-info.plist file in …

iphone objective-c ios ipad info.plist
AFNetworking 2.0 add headers to GET request

I've just started using AFNetworking 2.0 and I was wondering how I put in headers into a HTTP Get request. The …

iphone ios objective-c afnetworking afnetworking-2
How to determine if an NSDate is today?

How to check if an NSDate belongs to today? I used to check it using first 10 characters from [aDate description]. [[…

ios objective-c cocoa-touch nsdate nscalendar
iPhone: Detecting user inactivity/idle time since last screen touch

Has anybody implemented a feature where if the user has not touched the screen for a certain time period, you …

ios objective-c iphone idle-timer
Subtract 7 days from current date

It seems that I can't subtract 7 days from the current date. This is how i am doing it: NSCalendar *gregorian = [[…

objective-c ios nsdate
NSURLSession: How to increase time out for URL requests?

I am using iOS 7's new NSURLSessionDataTask to retrieve data as follows: NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask = [session dataTaskWithRequest: …

ios objective-c swift http nsurlsession