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.

Add views in UIStackView programmatically

I'm trying to add views in UIStackView programmatically. For now My code is: UIView *view1 = [[UIView alloc]init]; view1.backgroundColor = […

ios objective-c ios9 uistackview
Creating a UICollectionView programmatically

I'm looking for a guide or tutorial that will show me how to set up a simple UICollectionView using only …

ios objective-c cocoa-touch uicollectionview
UIScrollView scroll to bottom programmatically

How can I make a UIScrollView scroll to the bottom within my code? Or in a more generic way, to …

ios objective-c swift uiscrollview
How to navigate through textfields (Next / Done Buttons)

How can I navigate through all my text fields with the "Next" Button on the iPhone Keyboard? The last text …

ios objective-c iphone
How do I add 1 day to an NSDate?

Basically, as the title says. I'm wondering how I could add 1 day to an NSDate. So if it were: 21st …

objective-c swift date cocoa-touch nsdate
How do I URL encode a string

I have a URL string (NSString) with spaces and & characters. How do I url encode the entire string (including …

ios objective-c iphone ipad nsstring
Cocoa Touch: How To Change UIView's Border Color And Thickness?

I saw in the inspector that I can change the background color, but I'd like to also change the border …

ios objective-c iphone cocoa-touch interface-builder
Can you autoplay HTML5 videos on the iPad?

The <video> tags autoplay="autoplay" attribute works fine in Safari. When testing on an iPad, the video must …

jquery ios objective-c html cocoa-touch
Creating a segue programmatically

I have a common UIViewController that all my UIViewsControllers extend to reuse some common operations. I want to set up …

ios objective-c segue