NSString *curAddress = [NSString stringWithFormat:@"%id",curTextField];
2.描述:(返回对象详细信息,不同类型对象,信息不同)
[tempView description];以下为返回信息:
<UILayoutContainerView: 0x3e24a80; frame = (0 0; 320 480); autoresize = W+H; layer = <CALayer: 0x3e24b20>>
<UINavigationTransitionView: 0x3e24d80; frame = (0 0; 320 480); clipsToBounds = YES; autoresize = W+H; layer = <CALayer: 0x3e0fee0>>
<UIViewControllerWrapperView: 0x3e7ced0; frame = (0 64; 320 416); autoresize = RM+BM; layer = <CALayer: 0x3e75c30>>
<UIView: 0x3ea3290; frame = (0 0; 320 416); autoresize = RM+BM; layer = <CALayer: 0x3ea6970>>
<UILabel: 0x3ea1820; frame = (20 25; 21 21); text = '0'; clipsToBounds = YES; opaque = NO; autoresize = RM+BM; userInteractionEnabled = NO; layer = <CALayer: 0x3ea6ce0>>
处理描述信息:可用:- (BOOL)hasPrefix:(NSString *)aString;
- (BOOL)hasSuffix:(NSString *)aString; 取得开有和结尾的字符串,判断对象所属的私有类型;
可以用:NSClassFromString(@"MKUserLocationView") alloc] initWith...来创建该类型对象。