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.

How to scroll UITableView to specific position

How can I scroll the table's cell to specific position ? I have a table which shows 3 rows (according to height). …

iphone objective-c cocoa-touch uitableview uiscrollview
How can I get a precise time, for example in milliseconds in Objective-C?

Is there an easy way to get a time very precisely? I need to calculate some delays between method calls. …

iphone objective-c cocoa-touch uikit
How to disable horizontal scrolling of UIScrollView?

I have a UIView like iPhone's Springboard. I have created it using a UIScrollView and UIButtons. I want to disable …

ios objective-c uiscrollview
How can we store into an NSDictionary? What is the difference between NSDictionary and NSMutableDictionary?

I am developing an application in which I want to use an NSDictionary. Can anyone please send me a sample …

iphone objective-c nsdictionary nsmutabledictionary
Always pass weak reference of self into block in ARC?

I am a little confused about block usage in Objective-C. I currently use ARC and I have quite a lot …

ios iphone objective-c automatic-ref-counting weak-references
How can I calculate the difference between two dates?

How can I calculate the days between 1 Jan 2010 and (for example) 3 Feb 2010?

objective-c swift date nsdate
Case insensitive comparison NSString

Can anyone point me to any resources about case insensitive comparison in Objective C? It doesn't seem to have an …

ios objective-c cocoa-touch nsstring
Delete specified file from document directory

I want to delete an image from my app document directory. Code I have written to delete image is: -(…

ios objective-c xcode nsdocumentdirectory
iOS application: how to clear notifications?

I've an iOS application where some Push Notification are sent to. My problem is, that the messages/notifications stays in …

objective-c cocoa-touch apple-push-notifications
Move UIView up when the keyboard appears in iOS

I have a UIView, it is not inside UIScrollView. I would like to move up my View when the keyboard …

objective-c ios xcode uiview uiviewcontroller