爱课堂投屏

APP地址:https://itunes.apple.com/cn/app/id1568436707?mt=8

一、获取Wifi信息

目前的系统版本中,为了获取Wifi信息,需要进行以下步骤:

1.添加配置:Access Wifi Information

2.获取地址:LocationManager

3.获取wifi信息 CFArrayRef myArray = CNCopySupportedInterfaces();

二、SQLCodeInputView 的使用

pod 'SQLCodeInputView' 

使用步骤详见:https://github.com/beiguo172528/SQLCodeInputView

三、图片旋转

CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];

    //默认是顺时针效果,若将fromValue和toValue的值互换,则为逆时针效果

    animation.fromValue= [NSNumber numberWithFloat:0.f];

    animation.toValue= [NSNumber numberWithFloat:M_PI*2];

    animation.duration=3;

    animation.autoreverses=NO;

    animation.fillMode = kCAFillModeForwards;

    animation.repeatCount = MAXFLOAT; //如果这里想设置成一直自旋转,可以设置为MAXFLOAT,否则设置具体的数值则代表执行多少次

    [self.imgV.layer addAnimation:animationforKey:nil];

四、新建 AirplayServe

关于新建AirplayServe,详情见:https://github.com/beiguo172528/SQLAiryplayService、

五、本APP涉及到TCP通信

通信的基本逻辑见:https://www.jianshu.com/p/c766859243e4

六、本APP涉及到Protobuf

第一步:安装Protobuf,安装步骤可baidu、google

第二部:Protobuf的编译:

例如: protoc --proto_path=/Users/dofar/Desktop/SVN/Proto --objc_out=/Users/dofar/Desktop/myProto StudentBiz.proto

protoc --proto_path=当前Proto文件夹 --objc_out=编译后Proto文件夹  编译的文件

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容