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.

Swift compiler error: "non-modular header inside framework module"

Now I would like to migrate my ObjC framework to Swift and I got the following error: include of non-modular …

objective-c frameworks swift
Assigning to 'id<Delegate>' from incompatible type 'ViewController *const_strong'

Throughout my app, I'm getting semantic issue warnings when I set ViewController.delegate = self. I have searched and found similar …

ios objective-c delegates
How to programmatically add a UISegmentedControl to a container view

How would I define the frame for a UISegmentedControl? I would like the segmented control to appear at the bottom …

ios objective-c iphone swift uisegmentedcontrol
UILongPressGestureRecognizer gets called twice when pressing down

I am detecting if the user has pressed down for 2 seconds: UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleLongPress:)]; …

iphone objective-c cocoa-touch gesture-recognition uigesturerecognizer
Best way to parse URL string to get values for keys?

I need to parse a URL string like this one: &ad_eurl=http://www.youtube.com/video/4bL4FI1…

ios objective-c swift parsing cocoa-touch
How to give space between two cells in tableview?

I want a space between two cell in table view, I want cell like this, How can i do that?

iphone objective-c cocoa-touch uitableview ios4
iOS Detect 3G or WiFi

I am not sure if this is possible, but I have this scenario. I have a website displayed in my …

ios objective-c wifi reachability 3g
Adding an object at a specific index of an NSMutableArray

How can an object be added at a specific index of an NSMutableArray? How is an object added to the …

objective-c nsmutablearray foundation
Display clearColor UIViewController over UIViewController

I have a UIViewController view as a subview/modal on top of another UIViewController view, such as that the subview/…

iphone objective-c ios uiviewcontroller storyboard
Readonly Properties in Objective-C?

I have declared a readonly property in my interface as such: @property (readonly, nonatomic, copy) NSString* eventDomain; Maybe I'm misunderstanding …

objective-c properties readonly