name of UIView that was touched

前端 未结 3 1822
生来不讨喜
生来不讨喜 2021-01-07 06:39

How can I get the name of the [touch view] in the touchesbegan event. So if it were UIView *aaaaaview I would get aaaaaview as the return; Thank You, nonono

3条回答
  •  醉话见心
    2021-01-07 06:49

    Or maybe something like this:

    if ([viewController.nibName isEqualToString:@"aaaaView"])
    

提交回复
热议问题