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.

Alternatives to dispatch_get_current_queue() for completion blocks in iOS 6?

I have a method that accepts a block and a completion block. The first block should run in the background, …

objective-c cocoa-touch ios6 objective-c-blocks grand-central-dispatch
How to get the size of a NSString

A "quicky": how can I get the size (width) of a NSString? I'm trying to see if the string width …

iphone objective-c xcode nsstring width
Proper use of beginBackgroundTaskWithExpirationHandler

I'm a bit confused about how and when to use beginBackgroundTaskWithExpirationHandler. Apple shows in their examples to use it in …

ios objective-c network-programming multitasking background-thread
Objective-C categories in static library

Can you guide me how to properly link static library to iPhone project. I use static library project added to …

iphone objective-c static-libraries categories
iPhone Store Kit "Cannot connect to iTunes Store"

I am working on adding In-App purchases to my app. I am able to receive the productsRequest:didReceiveResponse method, and …

iphone objective-c in-app-purchase storekit
UITextView link detection in iOS 7

I have a UITextView which is managed via Interface Builder. As data detection I have "Links" checked. In iOS 6 everything …

ios objective-c ios6 uitextview ios7
Can objective-c code call swift extension on Class?

I searched some posts, I think I cannot write an extension under swift, and call it from Objective-C code, right ? @…

objective-c swift swift-extensions
Communicating and persisting data between apps with App Groups

iOS 8 revealed a new API yesterday concerning App Groups. It was kind of messy before to share data and communicate …

ios objective-c ios8 ios-app-extension
iOS 8 Map Kit Obj-C Cannot Get Users Location

I am working with Map Kit in iOS 8 using Obj-C NOT SWIFT. I cannot get the device location it is …

objective-c mapkit cllocationmanager ios8
iPhone: How to draw line between two points on MapKit?

I have Latitude and Longitude of two points and Want to Draw line between these two points with Pin on …

iphone objective-c ios ipad mapkit