Use the timestamp property of the UITouch object if you're looking for the time the touch happened.
how to get a value from NSSet? [closed]
-
17-01-2022 - |
Question
I have printed an NSSet like below
touch :<UITouch: 0x9266b60>
phase: Began
tap count: 1
window: <UIWindow: 0x718a240;
frame = (0 0; 320 480);
layer = <UIWindowLayer: 0x718a050>>
view: <UILabel: 0x7588b60;
frame = (60 17; 69 16);
text = '11:30-11:45 AM';
clipsToBounds = YES;
opaque = NO;
autoresize = RM+BM;
tag = 2;
layer = <CALayer: 0x7588bf0>>
location in window: {102, 233}
previous location in window: {102, 233}
location in view: {38, 5}
previous location in view: {38, 5}
I want to take out only the value for key text = How can I do that ?
Solution 2
OTHER TIPS
Using the method - (id)valueForKey:(NSString *)key ?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow