IOS技术点总结(点点点)

技术点总结:

滚动视图:(第三方)

配置第三方:pod ‘XLsn0wLoop’

并导入头文件

三步  轻松实现滚动视图

//2:更改根视图方法:

TwoViewController *theTC = [[TwoViewController alloc]init];

AppDelegate * app = (AppDelegate *)[UIApplication sharedApplication].delegate;

app.window.rootViewController = theTC;

//3:判断首次登录

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

// Override point for customization after application launch.

//  使用NSUserDefaults来判断程序是否第一次启动

NSUserDefaults *TimeOfBootCount = [NSUserDefaults standardUserDefaults];

if (![TimeOfBootCount valueForKey:@"time"]) {

[TimeOfBootCount setValue:@"sd" forKey:@"time"];

NSLog(@"第一次启动");

ViewController *theV = [[ViewController alloc]init];

UINavigationController *theNC=  [[UINavigationController alloc]initWithRootViewController:theV];

self.window.rootViewController = theNC;

}else{

NSLog(@"不是第一次启动");

TwoViewController *theV = [[TwoViewController alloc]init];

UINavigationController *theNC=  [[UINavigationController alloc]initWithRootViewController:theV];

self.window.rootViewController = theNC;

}

NSLog(@"启动成功");

return YES;

}

创建Plist文件,并读取文件

参考:

http://blog.csdn.net/totogo2010/article/details/7634185

表格跳转与传值

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

{

ThreeViewController *theTa= [[ThreeViewController alloc]init];

theTa.theA = theArr[indexPath.row];

[self.navigationController pushViewController:theTa animated:NO];

}

实现音乐播放

http://www.jb51.net/article/80550.htm

-(void)viewDidDisappear:(BOOL)animated

此文档仅供参考,

你可能感兴趣的:(IOS技术点总结(点点点))