由于对于自己的C基础还算满意,花了一个月断断续续的把OC看完了,最近在看一些IOS开发的知识。初次创建一个IOS项目,xCode会自动生成这些文件与目录
从头开始,应用首次执行会先从main函数开始执行。
int main(int argc, char * argv[]) {
    @autoreleasepool {
        return UIApplicationMain(a...
                            
                            
                                分类:
移动开发   时间:
2015-02-05 11:23:07   
                                阅读次数:
150
                             
                    
                        
                            
                            
                                ------Java培训、Android培训、iOS培训、.Net培训、期待与您交流! -------实例浅析oc中的浅复制和深复制的本质代码段1:#import int main(int argc, const char * argv[]) { @autoreleasepool { ...
                            
                            
                                分类:
其他好文   时间:
2015-01-24 11:23:44   
                                阅读次数:
233
                             
                    
                        
                            
                            
                                int main(int argc, const char * argv[]) {
    @autoreleasepool {
        
        //first
        void (^myBlock)() = ^{
            NSLog(@"myBlock execute");
        };
        myBlock();
        
 ...
                            
                            
                                分类:
移动开发   时间:
2015-01-18 18:36:34   
                                阅读次数:
249
                             
                    
                        
                            
                            
                                打开Xcode,新建一个Xcode项目,在OS X下面选择Application,再选择Command Line Tool,点击next,再下一个页面输入项目名称,点击next就完成了。此时,我们可以看到一个main.m的文件,其中有如下代码:
#import 
int main(int argc, const char * argv[]) {
    @autoreleasepool {...
                            
                            
                                分类:
其他好文   时间:
2015-01-10 08:57:38   
                                阅读次数:
176
                             
                    
                        
                            
                            
                                #include int fatorialWithNum(int num);int main(int argc, const char * argv[]) { @autoreleasepool { int result = fatorialWithNum(6); ...
                            
                            
                                分类:
其他好文   时间:
2015-01-04 17:03:11   
                                阅读次数:
135
                             
                    
                        
                            
                            
                                //集合中,不能存储基本数据类型,如果你想要把基本数据类型存储到数组,集合中,就必须把它转换成基本数据类型的包装类 @autoreleasepool { //int float double char int a = 10;// [NSString str...
                            
                            
                                分类:
其他好文   时间:
2014-12-28 16:48:09   
                                阅读次数:
147
                             
                    
                        
                            
                            
                                第一、block的使用
1、截获自动变量的值
typedef void(^TEST)(void);
int main(int argc, const char * argv[]) {
    @autoreleasepool {
        TEST test;
         NSString *sample=@"hello";
        test=^{
      ...
                            
                            
                                分类:
移动开发   时间:
2014-12-26 16:48:32   
                                阅读次数:
198
                             
                    
                        
                            
                            
                                #import int main(int argc, const char * argv[]){ @autoreleasepool { //1.判断字符串是否为空 NSString * str = @""; if (str == ni...
                            
                            
                                分类:
其他好文   时间:
2014-12-25 23:36:42   
                                阅读次数:
172
                             
                    
                        
                            
                            
                                #import int main(int argc, const char * argv[]){ @autoreleasepool { //1.获取字符串的长度 NSString * str = @"abcd"; NSUInteger leng...
                            
                            
                                分类:
其他好文   时间:
2014-12-25 23:33:58   
                                阅读次数:
179
                             
                    
                        
                            
                            
                                @autoreleasepool{}ARC模式下:1.[p autorelease]; 只会将p放入pool中,不会立即release(即 retain - 1),延迟至pool销毁时。2.在pool销毁时,其中的所有对象都将进行release。3.若开辟多线程时(如:[self performSe...
                            
                            
                                分类:
其他好文   时间:
2014-12-23 20:55:03   
                                阅读次数:
158