This tag should be used only on questions that are about Objective-C features or depend on code in the language.
I have a NSString like this: http://www. but I want to transform it to: http%3A%2F%2Fwww. How …
ios objective-c swift nsstring urlencodeWhen I have NSString with /Users/user/Projects/thefile.ext I want to extract thefile with Objective-C methods. What is …
objective-c cocoaCan someone explain to me what is the exact difference between modal and push segue? I know that when we …
ios objective-c swift storyboardI have an app in Objective C that I'm transitioning to Swift. In Objective C, I have this method: [self.…
ios objective-c swift xcode6I need to deep copy a custom object that has objects of its own. I've been reading around and am …
objective-c copyI have an NSArray and I'd like to create a new NSArray with objects from the original array that meet …
objective-c cocoa nsarrayWhen compiling this code, I get the error "initializer element is not a compile-time constant". Can anyone explain why? #import "…
objective-c cocoa initialization compiler-errors global-variablesI am trying to pass an object from my app delegate to a notification receiver in another class. I want …
objective-c swift cocoa-touch nsnotificationcenter nsnotificationsLet's say I have a UIButton in one tab view in my iPhone app, and I want to have it …
iphone objective-c ios uitabbarcontrollerI just came across a crash showing a NSInvalidArgumentException with this message on an app which wasn't doing this before. …
objective-c ios ios5