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 print int * & unsigned int* in NSLog?

How to print int* (int pointer) and unsigned int* in log using NSLog? - (int) doSomethingWith:(unsigned int)Msg withWparam:(…

objective-c nslog
Why requestWhenInUseAuthorization doesn't prompt the user for access to the location?

In my viewDidLoad method I have locationManager = [[CLLocationManager alloc]init]; // initializing locationManager locationManager.delegate = self; // we set the delegate of …

objective-c xcode ios8 cllocationmanager
UITextView content inset

I have encountered something a bit strange with contentInsets I have a UITextView in my storyboard with a contentInset of 50 …

ios objective-c uiscrollview uikit
How to programmatically add text to a UIView

I have a UIView that I'd like to add several bits of text to. I have used a UITextView but …

objective-c xcode text uiview programmatically-created
Read-only and non-computed variable properties in Swift

I'm trying to figure out something with the new Apple Swift language. Let's say I used to do something like …

objective-c swift properties
Search NSArray for value matching value

I have an NSArray of objects, which has a particular property called name (type NSString). I have a second NSArray …

iphone objective-c ipad nsarray
With Auto Layout, how do I make a UIImageView's size dynamic depending on the image?

I want my UIImageView to grow or shrink depending on the size of what the actual image it's displaying is. …

ios objective-c uiimageview autolayout nslayoutconstraint
UIScrollView: paging horizontally, scrolling vertically?

How can I force a UIScrollView in which paging and scrolling are on to only move vertically or horizontally at …

ios objective-c uiscrollview scroll-paging
Remove last character of NSString

I've got some trouble 'ere trying to remove the last character of an NSString. I'm kinda newbie in Objective-C and …

objective-c nsstring
iOS 10 error [access] <private> when using UIImagePickerController

I am using XCode 8 and testing with iOS 10.2 Beta. I have added the Photos, PhotosUI and MobileCoreServices frameworks to project. …

ios objective-c uiimagepickercontroller presentviewcontroller ios10