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.

ARC and bridged cast

With ARC, I can no longer cast CGColorRef to id. I learned that I need to do a bridged cast. …

objective-c automatic-ref-counting type-conversion clang
Instead of push segue how to replace view controller (or remove from navigation stack)?

I have a small iPhone app, which uses a navigation controller to display 3 views (here fullscreen): First it displays a …

ios iphone objective-c segue uistoryboardsegue
Terminating with uncaught exception of type NSException?

My application crashes when clicking a button to go to segue into a new view. This comes up: int main(…

objective-c nsexception
distanceFromLocation - Calculate distance between two points

Just a quick question on Core Location, I'm trying to calculate the distance between two points, code is below: -(…

ios objective-c core-location
Get Selected index of UITableView

I want to have selected index for UITableView. I have written following code: NSIndexPath *index = [NSIndexPath indexPathForRow:1 inSection:0]; [tableView scrollToRowAtIndexPath:…

ios objective-c iphone uitableview nsindexpath
Immutable/Mutable Collections in Swift

I was referring to Apple's Swift programming guide for understanding creation of Mutable/ immutable objects(Array, Dictionary, Sets, Data) in …

ios objective-c swift immutability mutable
Creating UIActionSheet

I would like to create this kind of menu, of course with other menu buttons. Is there any default viewcontroller …

ios objective-c uiactionsheet
Xcode MyProjectName-Bridging-Header.h does not exist

I want to start using Swift in my Objective-C project. So i added a swift class: import Foundation @objc class …

ios objective-c xcode swift
JSON Parsing in iOS 7

I am creating an app for as existing website. They currently has the JSON in the following format : [ { "id": "value", "…

ios objective-c json nsmutablearray nsarray
Load image from bundle with iOS

I added to my project a .bundle folder filled with some images. Is it correct refer to this image directly …

ios objective-c uiimage