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 apply a tintColor to a UIImage?

I have a UIImage that is a small symbol that is all black. The UIImage is getting set in a …

ios objective-c uibutton uiimage
How do you print out a stack trace to the console/log in Cocoa?

I'd like to log the call trace during certain points, like failed assertions, or uncaught exceptions.

objective-c cocoa
Add values in NSMutableDictionary in iOS with Objective-C

I'm starting objective-c development and I would like to ask the best way to implement a list of keys and …

ios objective-c nsmutabledictionary
List of all users and groups

I'm trying to get a list of all users and all groups on Mac OS X 10.5+. How can I do …

c objective-c cocoa macos macos-carbon
Info.plist Utility Error: "Info.plist couldn't be opened because there is no such file"

I'm running into what seems to be common error, in that Xcode can't seem to find my 'Info.plist' file. …

ios objective-c xcode relative-path info.plist
Is it possible to set a cookie manually using sharedHTTPCookieStorage for a UIWebView?

I have webviews inside of an iOS application that require an authentication cookie to be properly authenticated. I'm looking for …

objective-c ios uiwebview
how to get first three characters of an NSString?

How can I return the first three characters of an NSString?

objective-c cocoa
touchesBegan, touchesEnded, touchesMoved for moving UIView

I need to drag my UIView object. I use this code, but it does not work float oldX, oldY; BOOL …

ios objective-c xcode uiview touchesbegan
invalid context 0x0 under iOS 7.0 and system degradation

I've read as many search results I could find on this dreaded problem, unfortunatelly, each one seems to focus on …

objective-c ios7 core-graphics
capturing self strongly in this block is likely to lead to a retain cycle

How can I avoid this warning in xcode. Here is the code snippet: [player(AVPlayer object) addPeriodicTimeObserverForInterval:CMTimeMakeWithSeconds(0.1, 100) queue:nil …

objective-c cocoa-touch automatic-ref-counting avplayer retain