-5

我打印了一个如下所示的 NSSet

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}

我只想取出关键文本的值 = 我该怎么做?

4

2 回答 2

1

使用方法 - (id)valueForKey:(NSString *)key ?

于 2013-01-21T15:49:39.203 回答
0

如果您正在查找触摸发生的时间,请使用UITouch对象的时间戳属性。

于 2013-01-21T18:32:02.097 回答