6
votes
1answer
3k views

Use of Blocks crashes app in iPhone Simulator 4.3/XCode 4.2 and 4.0.2

Anybody else having trouble with the 4.3 iPhone Simulator in XCode 4.2(lion) or 4.0.2? I have code that has long been working, tested, and in production that uses blocks to specify completion ...
4
votes
2answers
993 views

In Xcode how do I add a breakpoint inside a block?

I have a method which returns a block. I want to add a breakpoint inside the block. In Xcode adding a breakpoint on a line that's inside the block causes execution to pause when the method is returned ...
1
vote
1answer
1k views

Xcode, ensure codes after blocks run later for NSURLConnection asynchronous request

Hi there: I have been writing an iOS program which uses many http queries to the backend rails server, and hence there are tons of codes like below. In this case, it is updating a UITableView: ...
0
votes
1answer
55 views

Return type “NSComparaisonResult” after the XCode update

I have a problem similar to the one outlined here: Has xcode 4.5 changed sortedArrayUsingComparator + blocks? int index = [AAjouter indexOfObject:match inSortedRange:NSMakeRange(0, [AAjouter count]) ...
0
votes
3answers
283 views

Executing Code Block In Place Of @selector

I'm creating a barButton which when pressed should set the editing mode of a UITableView to yes. Here's my code: self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle: ...