-5

I am declaring this block syntactically it is right still it is throwing error please tell me what i am doing wrong in this declaration.

enter image description here

Gaurav
  • 553
  • 5
  • 9
  • take a look [Block Declaration Syntax List](http://stackoverflow.com/questions/9201514/block-declaration-syntax-list) – Nitin Gohel Oct 26 '13 at 10:16
  • And this has nothing to do with Xcode anyway. (Yes, it's spelled "Xcode", and **not** "xcode"). –  Oct 26 '13 at 10:22
  • Change NSInteger to NSUInteger in your Block Parameters – lukaswelte Oct 26 '13 at 10:25
  • 1
    Please always copy/paste the (relevant) code and error messages into the question instead of screenshots. That makes it much easier for others to analyze your problem. – Martin R Oct 26 '13 at 13:45

2 Answers2

3

Replace Like:

[arrToggelButton enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
    //Write Your code
}];

Happy Coding...

Dhaval Bhadania
  • 3,090
  • 1
  • 20
  • 35
2

It is not right. The method argument requires a block that takes an unsigned integer (NSUInteger), whereas you declared a signed integer argument (NSInteger).