zoukankan      html  css  js  c++  java
  • NSObject所包含的信息。

    1. 地址:(返回的地址是10进制数)(0x: 0x3e24b20)
    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...来创建该类型对象。

  • 相关阅读:
    C 语言的读取文件
    [Water]序号呼唤
    [Water]Hdu 1022 Train Problem I
    [Water]Hdu 2054 A == B ?
    Java竞赛可能会用到的东西
    [Huffman]Hdu 2527 Safe Or Unsafe
    [Prim]Poj 1258 Agri-Net
    Hdu 1257 最少拦截系统 (LIS、贪心)
    [Max Sum]hdu 1003
    Hdu 2566 统计硬币
  • 原文地址:https://www.cnblogs.com/mac_arthur/p/1708338.html
Copyright © 2011-2022 走看看