在编写面向对象的程序时,你经常希望向现有的类添加一些新的行为:你总是能够为对象提供使用这些新方法的新手段。当希望为现有的类增加新行为时,我们通常会创建子类,但是有时候子类并不方便。例如,你可能会希望为NSString类增加一些新行为,但是你知道NSString实际上只是一个类簇的前台表示,因而无法为...
                            
                            
                                分类:
移动开发   时间:
2014-05-08 20:35:20   
                                阅读次数:
362
                             
                         
                    
                        
                            
                            
                                官方代码发短息和邮件添加MessageUI.framework 库发送信息- 
(IBAction)showSMSPicker:(id)sender{ // You must check that the current device 
can send SMS messages before you ...
                            
                            
                                分类:
移动开发   时间:
2014-05-08 20:26:04   
                                阅读次数:
500
                             
                         
                    
                        
                            
                            
                                类别.h@interface 
NSString(XXXXXX)-(NSInteger)getLen;@end.m@implementation 
NSString(XXXXXX) -(NSInteger)getLen{ return 
0;}@end//////////////////////////....
                            
                            
                                分类:
移动开发   时间:
2014-05-08 20:20:28   
                                阅读次数:
365
                             
                         
                    
                        
                            
                            
                                先看看apple官网简述:registerNib:forCellWithReuseIdentifier:Register 
a nib file for use in creating new collection view cells.- 
(void)registerNib:(UINib *)nib...
                            
                            
                                分类:
移动开发   时间:
2014-05-08 20:17:35   
                                阅读次数:
752
                             
                         
                    
                        
                            
                            
                                ###UITextField基本知识###[UITextField](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextField_Class/Reference/UITextField.html)...
                            
                            
                                分类:
移动开发   时间:
2014-05-08 20:15:11   
                                阅读次数:
372
                             
                         
                    
                        
                            
                            
                                参考:http://blog.csdn.net/linqir/article/details/8588835
                            
                            
                                分类:
移动开发   时间:
2014-05-08 20:03:45   
                                阅读次数:
293
                             
                         
                    
                        
                            
                            
                                一, 首先为window创建根视图控制器 在AppDelegate.h文件中- 
(BOOL)application:(UIApplication *)application 
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions//为w...
                            
                            
                                分类:
移动开发   时间:
2014-05-07 20:18:38   
                                阅读次数:
398
                             
                         
                    
                        
                            
                            
                                广州疯狂软件教育Java培训,iOS培训分享Servlet三种实现方式:实现Servlet接口,继承GenericServlet 
,继承HttpServlet。1、实现Servlet接口:import javax.servlet.*;import java.io.*;public 
class Hel...
                            
                            
                                分类:
其他好文   时间:
2014-05-07 20:04:10   
                                阅读次数:
300
                             
                         
                    
                        
                            
                            
                                广州疯狂软件教育Java培训,iOS培训分享Class类是Reflection 
API中核心的类,他位于java.lang.Class列出一些常用的方法。- getName() : 获得类的完整名字- getFields() : 
获得类的public类型的属性- getDeclaredFields(...
                            
                            
                                分类:
编程语言   时间:
2014-05-07 19:48:23   
                                阅读次数:
376
                             
                         
                    
                        
                            
                            
                                广州疯狂软件教育Java培训,iOS培训分享 
在开发Java应用程序时,通常情况下利用JFrame创建窗口。利用JFrame创建的窗口分别包含一个标题、最小化按钮、最大化按钮和关闭按钮 
1、在你使用JFrame创建窗体时的情况: 在你直接调用setBackground(Color.red)...
                            
                            
                                分类:
编程语言   时间:
2014-05-07 19:43:14   
                                阅读次数:
497