Puzzle-iOS icon indicating copy to clipboard operation
Puzzle-iOS copied to clipboard

It does not compile on Xcode 5

Open samorosi opened this issue 11 years ago • 1 comments

In PuzzleController.m, at line:

int e = [[[[arrayPieces objectAtIndex:l] edges] objectAtIndex:1] intValue];

there are the following errors: 1 - Multiple methods named 'edges' found with mismatched result, parameter type or attributes 2 - Bad receiver type 'UIRectEdge' (aka 'enum UIRectEdge')

Same errors at line: int e = [[[[arrayPieces lastObject] edges] objectAtIndex:2] intValue];

samorosi avatar Oct 16 '13 15:10 samorosi

"edges" was added to uikit in iOS7. Just search every instance of "edges" in the project and replace it with something like "my_edges" and it will work in Xcode 5/iOS7.

tropicdome avatar Feb 06 '14 20:02 tropicdome