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.

Detecting when the 'back' button is pressed on a navbar

I need to perform some actions when the back button(return to previous screen, return to parent-view) button is pressed …

iphone objective-c ios xcode
Unable to simultaneously satisfy constraints, will attempt to recover by breaking constraint

Below is the error message I receive in the debug area. It runs fine and nothing is wrong except that …

ios objective-c debugging nslayoutconstraint
How to store custom objects in NSUserDefaults

Alright, so I've been doing some poking around, and I realize my problem, but I don't know how to fix …

ios objective-c iphone encoding nsuserdefaults
How to get substring of NSString?

If I want to get a value from the NSString @"value:hello World:value", what should I use? The return …

objective-c cocoa-touch nsstring
CocoaPods Errors on Project Build

I'm unable to build a project that uses CocoaPods. I get the following errors: diff: /../Podfile.lock: No such file …

objective-c cocoa-touch cocoapods build-error
iPhone/iOS JSON parsing tutorial

As a learning experience, I want to make an iPhone application that calls a webserver/webservice, retrieves a JSON response, …

iphone objective-c ios json uitableview
Setting font on NSAttributedString on UITextView disregards line spacing

I'm trying to set an attributed string to a UITextView in iOS 6. The problem is, if I attempt to set …

objective-c ios6
How to add a border just on the top side of a UIView

My question is on the title. I don't know how to add a border in a specific side, top or …

ios objective-c xcode uiview border
The entitlements specified...profile. (0xE8008016). Error iOS 4.2

I am getting the 'dreaded' error The entitlements specified in your application’s Code Signing Entitlements file do not match …

iphone objective-c code-signing provisioning-profile code-signing-entitlements
How can I programmatically get the MAC address of an iphone

How to programmatically get an iPhone's MAC address and IP address?

ios objective-c iphone mac-address