面试题目

     1.轮播图:UIScrollView UICollectionView

     2.UITextField leftView属性

       UILabel userInteractionEnabled属性

       NSAttributeString

     3.OC-JS jscontext.evaluateScript

     4.微信支付返回结果:UIApplication

     5.100个用户验证,客户端与服务器端

    6.

    NSLog(@"%lu",sizeof(int));

    NSLog(@"%lu",sizeof(int*));

    NSLog(@"%lu",sizeof(char[3]));

    7.

    dispatch_queue_t queue = dispatch_queue_create("com.dispatch.serial", DISPATCH_QUEUE_SERIAL);

    dispatch_async(queue, ^{

        NSLog(@"1");

        [NSThread sleepForTimeInterval:5.0f];

        dispatch_async(queue, ^{

            NSLog(@"5");

        });

        [NSThread sleepForTimeInterval:5.0f];

        dispatch_async(queue, ^{

            NSLog(@"6");

        });

        NSLog(@"2");

        dispatch_suspend(queue);

        NSLog(@"3");

        [NSThread sleepForTimeInterval:10.0f];

        dispatch_resume(queue);

        NSLog(@"4");

    });

8.监听网络状态

(1)Reachability

(2)AFNetworking

(3)从状态栏中获取网络类型

    NSArray *children = [[[[UIApplication sharedApplication] valueForKeyPath:@"statusBar"]valueForKeyPath:@"foregroundView"]subviews];

posted @ 2017-02-22 15:13  听风gcl  阅读(103)  评论(0编辑  收藏  举报