Frage

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 ?

War es hilfreich?

Lösung 2

Use the timestamp property of the UITouch object if you're looking for the time the touch happened.

Andere Tipps

Using the method - (id)valueForKey:(NSString *)key ?

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top