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.

Swift: Custom ViewController initializers

How do you add custom initializers to UIViewController subclasses in Swift? I've created a sub class of UIViewController that looks …

ios objective-c swift uiviewcontroller initialization
iPhone - knowing if a UIScrollView reached the top or bottom

Is there a way to know if a UIScrollView has reached the top or bottom inside - (void)scrollViewDidEndDragging:(UIScrollView *)…

ios objective-c iphone uiscrollview uiscrollviewdelegate
Objective-C: How to add query parameter to NSURL?

Let's say I have an NSURL? Whether or not it already has an empty query string, how do I add …

objective-c query-string nsurl
How do I use the UISearchBar and UISearchDisplayController

I have an app which displays quite a lot of data in a UITableView. I already added the UISearchBar and …

ios objective-c uitableview uisearchbar uisearchdisplaycontroller
Resize UICollectionView cells after their data has been set

My UICollectionView cells contain UILabels with multiline text. I don't know the height of the cells until the text has …

objective-c uicollectionview uicollectionviewcell
Importing a Swift protocol in Objective-C class

I try to import a Swift Protocol named AnalyticProtocol into an Objective-C class named AnalyticFactory. protocol AnalyticProtocol { } I'm starting from …

objective-c swift
Modal segue, navigation bar disappears

I'm using Xcode 4.6.1 to code on Objective-C. I want to know how can I keep the navigation bar shown when …

ios objective-c xcode4.6
Converting a date format in objective C

How can i convert the following date "Sun Jul 17 07:48:34 +0000 2011" to the following format "2011-07-17 07:48:34"? I used NSDateFormatter as shown …

iphone objective-c ios nsdate nsdateformatter
Managing HTTP Cookies on iPhone

I want to port a python app that uses mechanize for the iPhone. This app needs to login to a …

iphone objective-c cookies www-mechanize
How do I debug with NSLog(@"Inside of the iPhone Simulator")?

I'm used to programming and having log messages be viewable. I know you used to be able to use NSLog() …

iphone objective-c cocoa xcode nslog