#import int main(int argc,const char *argv[]){ NSAutoreleasePool *pool =[[NSAutoreleasePool alloc] init]; NSLog("Hello,World!"); [pool drain]...
                            
                            
                                分类:
其他好文   时间:
2015-03-05 22:19:11   
                                阅读次数:
156
                             
                         
                    
                        
                            
                            
                                //1,这种方法,拨打完电话回不到原来的应用,会停留在通讯录里,而且是直接拨打,不弹出提示NSMutableString * str=[[NSMutableString alloc] initWithFormat:@"tel:%@",@"000000000"]; // NSLog(@"s...
                            
                            
                                分类:
移动开发   时间:
2015-03-05 14:22:05   
                                阅读次数:
114
                             
                         
                    
                        
                            
                            
                                - (void)handleLongPress:(UILongPressGestureRecognizer*)sender { 
    if (sender.state == UIGestureRecognizerStateEnded) {
        NSLog(@"Long press Ended");
    }
    else {
        NSLog(@"Long pres...
                            
                            
                                分类:
移动开发   时间:
2015-03-04 19:07:10   
                                阅读次数:
138
                             
                         
                    
                        
                            
                            
                                导入头文件:#import - (void)currentWifiSSID { // Does not work on the simulator. NSArray *ifs = (__bridge id)CNCopySupportedInterfaces(); NSLog(@"ifs:%@",if...
                            
                            
                                分类:
移动开发   时间:
2015-03-04 18:57:17   
                                阅读次数:
143
                             
                         
                    
                        
                            
                            
                                1.在object-c运行时替换私有类的方法runtime完全解读2.运行时给一个对象增加方法//C方法形式定义被增加的方法void helloLog(id self, SEL _cmd){ NSLog(@"helloLog");}//OC方法形式定义被增加方法- (void)helloLog{ ....
                            
                            
                                分类:
其他好文   时间:
2015-03-04 18:56:17   
                                阅读次数:
111
                             
                         
                    
                        
                            
                            
                                char* pCh = "0xe6, 0x97, 0xa0, 0xe7, 0x95, 0x8c, 0xe6, 0xb5, 0x8f, 0xe8, 0xa7, 0x88";字符串的形式存在于内存中,达不到预期下面两种均可:unsigned char title[] = {0xe6, 0x97, 0xa...
                            
                            
                                分类:
其他好文   时间:
2015-03-04 16:26:40   
                                阅读次数:
118
                             
                         
                    
                        
                            
                            
                                Xcode6中如何添加pch文件
1.在已有的工程里面创建pch文件,Commond+N——>iOS——>Other——>PCH File
2.更改配置,Targets—>Build Settings->Precompile Prefix Header 改成yes
Targets—>Build Settings->Prefix Header 后面添加路径如: $(SRCROOT)/Viode...
                            
                            
                                分类:
其他好文   时间:
2015-03-03 20:48:25   
                                阅读次数:
170
                             
                         
                    
                        
                            
                            
                                NSLog(@"globallyUniqueString=%@",[[NSProcessInfoprocessInfo]globallyUniqueString]);//全球唯一标识NSLog(@"uniqueIdentifie=%@",[UIDevicecurrentDevice].uniqueI...
                            
                            
                                分类:
移动开发   时间:
2015-03-03 17:57:55   
                                阅读次数:
132