1、十进制转换为二进制 Objective C / 十进制转换为二进制 @param decimal 十进制数 @return 二进制数 / + (NSString )getBinaryByDecimal:(NSInteger)decimal { NSString binary = @""; whi ...
分类:
移动开发 时间:
2018-07-23 12:42:01
阅读次数:
274
You are given nn strings str1,str2,…,strnstr1,str2,…,strn, each consisting of ( and ). The objective is to determine whether it is possible to permute ...
分类:
其他好文 时间:
2018-07-22 17:00:44
阅读次数:
161
一、IDE的安装(Code::Blocks) 我们选用Code::Blocks作为IDE,它的安装包可以从网上各处下载下来,对版本无特别要求。笔者使用的是16.10的版本(链接: https://pan.baidu.com/s/1l7EtMVWBCffuCVHaF3-tQg 密码: 85ie) 具体 ...
1 下面写代码测试探索NSObject的本质 Objective-C代码,底层实现其实都是C\C++代码 把Objective-C代码 转换成C++代码 在命令行中进去main.m所在的文件地址 然后输入 xcrun -sdk iphoneos clang -arch arm64 -rewrite- ...
分类:
其他好文 时间:
2018-07-17 19:29:15
阅读次数:
156
1. gcc (1)是什么? 它是GNU Compiler Collection(就是GNU编译器套件),也可以简单认为是编译器。它可以编译很多种编程语言(括C、C++、Objective C、Fortran、Java等等)。 (2)怎么用? 当你的程序只有一个源文件时,直接就可以用gcc命令编译它 ...
分类:
其他好文 时间:
2018-07-16 19:25:53
阅读次数:
158
一、苹果网站文档使用方法(www.developer.apple.com) 1、Develop2、.Documentation3、Documentation Archive4、Languages & Utilities5、Programming with Objective-C 二、xcode苹果手 ...
分类:
移动开发 时间:
2018-07-15 23:53:11
阅读次数:
298
1.JAVA开发工具 IDEA 2.PHP开发工具PhpStorm 3.Python开发工具PyCharm 4.Ruby 和 Rails开发工具RubyMine 5.Javascript和前端开发工具WebStorm 6.Objective-C开发工具AppCode 7.持续集成服务器TeamCit ...
分类:
其他好文 时间:
2018-07-15 19:51:18
阅读次数:
212
-------------------------------
``` Objective-C
/** 判断是否为 iPhone 5SE */
#define iPhone5SE [[UIScreen mainScreen] bounds].size.width == 320.0f && [[UIS... ...
分类:
其他好文 时间:
2018-07-15 00:52:12
阅读次数:
287
---------------------------------
``` Objective-C
#define UserDefaults [NSUserDefaults standardUserDefaults]
#define SharedApplication [UIApplication ... ...
分类:
其他好文 时间:
2018-07-15 00:51:54
阅读次数:
223