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.

UICollectionView's cellForItemAtIndexPath is not being called

Only my second time using UICollectionView's and perhaps I have bitten off more than I can chew but nevertheless: I …

ios objective-c uicollectionview
Declare a block method parameter without using a typedef

Is it possible to specify a method block parameter in Objective-C without using a typedef? It must be, like function …

objective-c parameters objective-c-blocks
malloc: *** error: incorrect checksum for freed object - object was probably modified after being freed

I have a big problem with my iOS App: it crashes sometimes without detailed debug error. The stack trace is …

ios objective-c c crash malloc
NSURLConnection and Basic HTTP Authentication in iOS

I need to invoke an initial GET HTTP request with Basic Authentication. This would be the first time the request …

ios iphone objective-c nsurlconnection
Is it possible to debug "Terminated due to memory error"?

In a certain (consistent) point when my app is running, I consistently get the xcode error message Terminated due to …

ios objective-c memory-management automatic-ref-counting
iOS 7 sizeWithAttributes: replacement for sizeWithFont:constrainedToSize

How do you return a multiline text CGSize from the new iOS 7 method sizeWithAttributes? I would like this to produce …

objective-c ios7
Weak and strong property setter attributes in Objective-C

What is the difference between weak and strong property setter attributes in Objective-C? @property(retain, [weak/strong]) __attribute__((NSObject)) CFDictionaryRef …

iphone ios objective-c automatic-ref-counting
How do I adjust the left margin for prototype cells in a UITableView?

If I create a UITableViewController, for example via File → New Project... → iOS → Master-Detail Application in Xcode, a UITableView is created …

ios objective-c uitableview interface-builder
Is there any way to check if iOS app is in background?

I want to check if the app is running in the background. In: locationManagerDidUpdateLocation { if(app is runing in background){ …

ios objective-c uiapplicationdelegate application-lifecycle ios-background-mode