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.

Split NSString multiple times on the same separator

I am currently receiving a string like this: @"Sam|26,Hannah|22,Adam|30,Carlie|32,Jan|54" And I am splitting it like this: …

objective-c string cocoa-touch cocoa nsstring
How to send a Get request in iOS?

I am making a library to get response from a particular URL with specified data and method type. For this, …

iphone objective-c url get nsurl
Getting the current page

In my scroll view, I want to get the current page that's being displayed (maybe page isn't the correct term). …

ios objective-c iphone cocoa-touch uiscrollview
Can't endBackgroundTask: no background task exists with identifier, or it may have already been ended

I am using background task to run the timer in the background to update the user's location. It's declared as: …

objective-c ios7 xcode5
Rounded UIView using CALayers - only some corners - How?

In my application - there are four buttons named as follows: Top - left Bottom - left Top - right …

iphone objective-c xcode uiview calayer
POST multipart/form-data with Objective-C

So this HTML code submits the data in the correct format for me. <form action="https://www.example.com/…

objective-c http-post multipartform-data http-post-vars
Get parts of a NSURL in objective-c

I have an NSString with the value of http://digg.com/news/business/24hr How can I get everything before …

objective-c nsstring nsurl
Center text vertically in a UITextView

I want to center the text vertically inside a big UITextView that fills the whole screen - so that when …

iphone objective-c ios xcode uitextview
Failed to obtain a cell from its DataSource

What is wrong with the below code -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = […

ios objective-c uitableview
Getting name of the class from an instance

I have the following problem: I get an instance of a class passed and want to know the name of …

iphone objective-c class instance classname