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...来创建该类型对象。

  • 相关阅读:
    nginx学习1
    win7右下角的网络连接图标不见了~终极必杀技
    centos配置history记录每个用户执行过的命令
    Screen会话命令 Linux
    Linux的运行级别和chkconfig用法
    Linux与Windows中的UTC时间
    Solr 缓存配置
    SolrJ 查询数据
    Solr之困
    solr 查询参数说明
  • 原文地址:https://www.cnblogs.com/mac_arthur/p/1708338.html
Copyright © 2011-2022 走看看