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.

Copy text to clipboard with iOS

What is the best way to copy text to the iPhone's clipboard in your application? Their docs are sketchy and …

ios objective-c copy clipboard
UITableView goes under translucent Navigation Bar

I am trying to have a transparent navigation bar in IOS 7 app. There is a full screen image in my …

ios objective-c uitableview uinavigationbar
How to send objects in NIB files to front/back?

How can I adjust the "z"-positions of objects (e.g. sending UIImageViews to the front/back) in the integrated …

objective-c iphone xcode interface-builder
How to change font color of UISegmentedControl

I try to change font color from white to black for UISegmentedControl (for iOS 4.*) UISegmentedControl *button = [[[UISegmentedControl alloc] initWithItems:[NSArray …

iphone objective-c cocoa-touch uisegmentedcontrol
Rotate UIView around its center keeping its size

I'm trying to rotate an UIView a few radians but after applying the transformation it doesn't look to be keeping …

ios objective-c uiview rotation
Getting the visible rect of an UIScrollView's content

How can I go about finding out the rect (CGRect) of the content of a displayed view that is actually …

objective-c iphone uiscrollview
Accessing variables from another ViewController in Swift

I have the following ViewController: class PageContentViewController: UIViewController { var pageIndex: Int } How would I access pageIndex from another ViewController? I …

ios objective-c swift uipageviewcontroller
Update height constraint programmatically

I am new in auto layout. I have done all of my project from xib file, but now I faced …

ios objective-c swift autolayout nslayoutconstraint
Delete a particular local notification

I am developing an iPhone alarm app based on local notifications. On deleting an alarm, the related local notification should …

objective-c iphone uilocalnotification usernotifications
Proper practice for subclassing UIView?

I'm working on some custom UIView-based input controls, and I'm trying to ascertain proper practice for setting up the view. …

ios objective-c cocoa-touch uiview