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.

Customize UITableView header section

I want to customize UITableView header for each section. So far, I've implemented -(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)…

ios objective-c swift uitableview
Undefined symbols for architecture i386: _OBJC_CLASS_$_SKPSMTPMessage", referenced from: error

I have imported framework for sending email from application in background i.e. SKPSMTPMessage Framework. Can somebody suggest why below …

ios objective-c iphone compiler-errors email-integration
for each loop in Objective-C for accessing NSMutable dictionary

I am finding some difficulty in accessing mutable dictionary keys and values in Objective-C. Suppose I have this: NSMutableDictionary *xyz=[[…

objective-c nsdictionary enumeration nsmutabledictionary key-value
How do I draw a shadow under a UIView?

I'm trying to draw a shadow under the bottom edge of a UIView in Cocoa Touch. I understand that I …

iphone objective-c ios cocoa-touch core-graphics
Understanding dispatch_async

I have question around this code dispatch_async(dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ NSData* data = [NSData dataWithContentsOfURL: …

objective-c asynchronous dispatch-async
In Objective-C, how do I test the object type?

I need to test whether the object is of type NSString or UIImageView. How can I accomplish this? Is there …

ios objective-c
Hide separator line on one UITableViewCell

I'm customizing a UITableView. I want to hide the line separating on the last cell ... can i do this? I …

ios objective-c uitableview cocoa-touch separator
Getting current device language in iOS?

I'd like to show the current language that the device UI is using. What code would I use? I want …

ios objective-c cocoa-touch nslocale
How to split a string literal across multiple lines in C / Objective-C?

I have a pretty long sqlite query: const char *sql_query = "SELECT statuses.word_id FROM lang1_words, statuses WHERE …

c objective-c