Open smic opened 8 years ago
Maybe this falls into the same category? From the Apple AstroLayout sample.
UILayoutGuide *(^newLayoutGuide)(NSString *) = ^(NSString *identifierName){
UILayoutGuide *newGuide = [[UILayoutGuide alloc] init];
newGuide.identifier = identifierName;
[self.view addLayoutGuide: newGuide];
return newGuide;
};
UILayoutGuide *leadingMercuryGuide = newLayoutGuide(@"leadingMercuryGuide");
I have the same issue with this file in version 4.2:
The compiler seems to have a problem with blocks as method parameters like in following code: