IOS 设置textfield为密码框
[textfield1 setSecureTextEntry:YES];
块里定义的对象变量,在出块(最好是不用了之后就马上)时一定要release,块可以是函数块,类等,也就是一个作用域。比如:在一个函数内:
self.player = [[MPMoviePlayerController alloc] init];
self.player.movieSourceType = MPMovieSourceTypeStreaming;
self.player.view.frame = CGRectMake(0, 0, 320, 180);//NAVIGATIONBAR_HEIGHT
[self.view addSubview:self.player.view];
[self.player release];
类的对象成员,在类的delloc里边全都要release.在viewDidUnload里set为nil
- (void)viewDidUnload { [self setRefreshButton:nil];}
留言的文本框bug和滑动bug先不管,陈思会弄 03071501
接口27:
http://180.168.69.121:8081/Internet?ac=program&f=schedule&clienttype=1&pcode=1&token=123&liveid=98000000000000000001346842233691&date=20120910
NSDictionary *conditions = [NSDictionary dictionaryWithObjectsAndKeys:
@"program" , @"ac",
@"schedule", @"f",
today, SYNC_LIVE_DATE,
LIVEID, SYNC_LIVE_LIVEID,
@"1", @"pcode",nil];
少token和clienttype
接口28:
http://180.168.69.121:8089/Internet?ac=play&f=scheduleInfo&clienttype=1&pcode=1&token=123&contentid=2450366&liveid=98000000000000000001347704795483
NSDictionary *conditions = [NSDictionary dictionaryWithObjectsAndKeys:
@"scheduleInfo", @"f",
contentID, SYNC_LIVE_CONTENTID,
LIVEID, SYNC_LIVE_LIVEID,
@"2", @"pcode",nil];
LiveManager *live = [[LiveManager alloc] init];
[live previousDataByConditions:conditions];