So I have:
@interface testAppControl : NSObject { NSString *s; }
and then in my block I want to do
[SendAPI setGroupWithNam
Declare it as a __block variable, then you can use it outside the block and alter it inside the block.
__block
__block NSString *s = nil; void(^block)(void) = ^ { s = @"something"; }; block(); NSLog(@"%@", s); s = @"blah"; NSLog(@"%@", s); block(); NSLog(@"%@", s);