摘要:AppDelegate.m- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { /** 沙盒中文件夹: 1.Do...
阅读全文
随笔分类 - iOS学习之路
摘要:第一种从资源包中加载cellstatic NSString *identifier = @"resuse"; EditCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier]; if(!cell){ ...
阅读全文
摘要:RootViewController.m#import "RootViewController.h"#import "UIImage+UIImageScale.h"@interface RootViewController ()@property (nonatomic, retain) NSArra...
阅读全文
摘要:#import "ViewController.h"#import "SecondViewController.h"@interface ViewController ()@property (retain, nonatomic) IBOutlet UITextField *textField;@e...
阅读全文
摘要:第三方SAT解析#import "SAXTableViewController.h"#import "Student.h"@interface SAXTableViewController ()@property (nonatomic, retain) NSMutableArray *dataSou...
阅读全文
摘要:1.用到的一些第三方PostTableViewController.m#import "PostTableViewController.h"@interface PostTableViewController ()@property(nonatomic,retain) NSArray *dataAr...
阅读全文
摘要:ContactListController.m#import "ContactListController.h"#import "FMDatabase.h" // 第三方数据库操作类#import "ContactCell.h"#import "DetailViewController.h"#imp...
阅读全文
摘要:#import #import "Person.h"#import "Student.h"int main(int argc, const char * argv[]) { @autoreleasepool { //创建Person对象 Person *p = [[Per...
阅读全文
摘要:#import "RootViewController.h"#import "Htohero.h"@interface RootViewController ()@property (nonatomic, retain) NSArray *apps;@end@implementation RootV...
阅读全文
摘要:@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *...
阅读全文
摘要:#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith...
阅读全文
摘要:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow alloc] ini...
阅读全文
摘要:#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith...
阅读全文
摘要:#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith...
阅读全文
摘要:RootViewController//视图控制器(UIViewController):它不是视图,用来管理视图,所以屏幕上看不到,但是自身携带一个视图(根视图)#import "RootViewController.h"#import "LoginView.h"//视图控制器的延展@interfa...
阅读全文
摘要:RootViewController#import "RootViewController.h"#import "TouchView.h"#import "PanView.h"#import "PinchView.h"@interface RootViewController ()@end@impl...
阅读全文
摘要:#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; /...
阅读全文
摘要://两种设计模式详解//target/action设计模式1.给当前的视图添加触摸响应事件,2.当触摸时响应//代理设计模式 协议和代理的使用; 当自定义协议时的使用步骤: 126是在委托方实现的,345是在代理方实现的 1.定义协议(协议中存储代理应该完成的任务) 1....
阅读全文
摘要:响应者链就是当子视图不响应,父视图有响应事件,父视图响应#import "RootViewController.h"#import "ResponderView.h"@interface RootViewController ()@end@implementation RootViewControl...
阅读全文
摘要:@implementation AppDelegate//当应用程序加载时触发,创建window窗口对象,让对象的window成为程序的主窗口,并且可视.- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOp...
阅读全文

浙公网安备 33010602011771号