2015年9月29日
    
 
        
        
摘要:        
1、错误:apple Mach-o Linker error 原因:compile source中有相同的.m文件 2、self.navigationController is null/***I guess your currentViewController in not in navigat...    
阅读全文
 
        
            posted @ 2015-09-29 22:08
菜鸟onTheLoad
阅读(157)
推荐(0)
        
            
        
        
摘要:        
GDataXML第三方xml解析框架DOM解析:一次性将整个XML文档加载进内存,比较适合解析小文件GDataXML中常用的类 GDataXMLDocument: 代表整个XML文档 GDataXMLElement: 代表文档中的每个元素 使用attributeForName:方法可以获得属性值要使...    
阅读全文
 
        
            posted @ 2015-09-29 21:42
菜鸟onTheLoad
阅读(159)
推荐(0)
        
 
		
    
        
            
        
         
        2015年9月25日
    
 
        
        
摘要:        
一、一个HTTP请求的基本要素1.请求URL:客户端通过哪个路径找到服务器2.请求参数:客户端发送给服务器的数据*比如登录时需要发送的用户名和密码3.返回结果:服务器返回给客户端的数据*一般是JSON数据或者XML数据二、基本的HTTP请求的步骤(移动客户端)1.拼接“请求URL”+“?”+“请求参...    
阅读全文
 
        
            posted @ 2015-09-25 00:20
菜鸟onTheLoad
阅读(118)
推荐(0)
        
 
		
    
        
            
        
         
        2015年9月24日
    
 
        
        
摘要:        
//创建url NSURL *url = [NSURL URLWithString:str]; //创建请求 NSURLRequest *request = [NSURLRequest requestWithURL:url]; //发送请求// NSOperationQueue *queue = ...    
阅读全文
 
        
            posted @ 2015-09-24 00:32
菜鸟onTheLoad
阅读(100)
推荐(0)
        
 
		
    
        
            
        
         
        2015年9月23日
    
 
        
        
摘要:        
// 延迟执行不要用sleep,坏处:卡住当前线程 [NSThread sleepForTimeInterval:(NSTimeInterval)];// 一旦定制好延迟任务后,不会卡主当前线程[self performSelector: withObject: afterDelay:];//n秒后...    
阅读全文
 
        
            posted @ 2015-09-23 00:11
菜鸟onTheLoad
阅读(176)
推荐(0)
        
 
		
    
        
            
        
         
        2015年9月22日
    
 
        
        
摘要:        
1.需要设置Button的image和backgroundImage,建议先把按钮类型改为custom,才能保证设置成功.如果设置为custom,那么button的尺寸和内容都要自己实现。例: UIButton *backBtn = [UIButton buttonWithType:UIButton...    
阅读全文
 
        
            posted @ 2015-09-22 01:27
菜鸟onTheLoad
阅读(117)
推荐(0)