Hi guys,
I noticed Xcode now corrects -
to
I have never seen the <UITouch *> part before in Objective-C. Can anyone explain what exactly that syntax is doing? It seems to work fine without it but I'd like to know what it is. Searching didn't bring up anything on the topic.
I noticed Xcode now corrects -
Code:
(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
to
Code:
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
I have never seen the <UITouch *> part before in Objective-C. Can anyone explain what exactly that syntax is doing? It seems to work fine without it but I'd like to know what it is. Searching didn't bring up anything on the topic.
Last edited by a moderator: