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.

UILabel - auto-size label to fit text?

Is it possible to auto-resize the UILabel box/bounds to fit the contained text? (I don't care if it ends …

ios iphone objective-c uilabel
How to get device make and model on iOS?

I was wondering if it's possible to determine what kind of iPhone (for example) the currentdevice is? I know it's …

ios objective-c iphone ipad
Hidden Features of Xcode

With a huge influx of newbies to Xcode, I'm sure there are lots of Xcode tips and tricks to be …

objective-c xcode macos cocoa
Proper way to exit iPhone application?

I am programming an iPhone app, and I need to force it to exit due to certain user actions. After …

ios objective-c iphone cocoa-touch ipad
How to control the line spacing in UILabel

Is it possible to reduce the gap between text, when put in multiple lines in a UILabel? We can set …

objective-c swift xcode uilabel line-spacing
Dynamically changing font size of UILabel

I currently have a UILabel: factLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 100, 280, 100)]; factLabel.text = @"some text some text some text some text"; …

ios objective-c fonts uilabel
iOS - Calling App Delegate method from ViewController

What I am trying to do is click a button (that was created in code) and have it call up …

ios objective-c uiviewcontroller appdelegate
Get push notification while App in foreground iOS

I am using push notification service in my app. When app is in background I am able to see notification …

iphone ios objective-c push-notification
Linker Command failed with exit code 1 (use -v to see invocation), Xcode 8, Swift 3

I can't get rid of this error! I have tried all sorts of things like clearing Derived Data(Preferences->…

ios objective-c xcode xcode8 carthage
UITableview: How to Disable Selection for Some Rows but Not Others

I am displaying in a group tableview contents parsed from XML. I want to disable the click event on it (…

ios iphone objective-c uitableview