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 do I get the current version of my iOS project in code?

I would like to be able to get the current version of my iOS project/app as an NSString object …

ios objective-c iphone swift
UIButton Long Press Event

I want to emulate a long a press button, how can I do this? I think a timer is needed. …

ios objective-c uibutton long-press
Pass data back to previous viewcontroller

I am trying to pass data BACK TO previous viewController. Does anyone know how to pass data back from ViewController …

iphone ios objective-c uiviewcontroller
How do I convert a NSString into a std::string?

I have an NSString object and want to convert it into a std::string. How do I do this in …

objective-c objective-c++
How do you draw a line programmatically from a view controller?

I have a UIViewController. How do I draw a line in one of its programmatically created views?

ios objective-c uiview uikit
How do I reload/refresh the UIPickerView (with new data array) based on button press?

IF I wanted a picker, for states/provinces, i haven't seen an example, but I mocked up shown above, a …

ios objective-c cocoa-touch uipickerview
How to get a single NSString character from an NSString

I want to get a character from somewhere inside an NSString. I want the result to be an NSString. This …

objective-c cocoa-touch nsstring
How to use UIStepper

I am trying to work with UIStepper to increment or decrement an integer, but both "-" and "+" increase the integer! …

ios objective-c uistepper
Is there a way to change the height of a UINavigationBar in Storyboard without using a UINavigationController?

I want to use a custom UINavigationBar in one of my views, which is not a part of any UINavigationController-hierarchy. …

ios objective-c cocoa-touch uinavigationcontroller uinavigationbar
UIButton with two lines of text in the title (numberOfLines=2)

I'm trying to make a UIButton that has two lines of text in its titleLabel. This is the code I'm …

objective-c ios uibutton uilabel