摘要:
MPMoviePlayerController *moviePlayer=[[MPMoviePlayerControlleralloc] initWithContentURL:[NSURLURLWithString:@"http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"]]; [moviePlayer.viewsetFrame: self.view.bounds]; // player's frame must match parent's [self.view addSubvie 阅读全文
posted @ 2012-09-10 23:26
SuperHappy
阅读(663)
评论(0)
推荐(0)
摘要:
在 UIResponder中存在这么一套方法- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);- (void)motionCancelled:(UIEventSubtype)mo 阅读全文
posted @ 2012-09-10 21:50
SuperHappy
阅读(5330)
评论(0)
推荐(0)
摘要:
好久没写blog了~ 今天有同学问delegate的使用,顺便写点东西。 ios 的 delegate经常出现在 model 与 controller之间的通信。delegate中文叫做委托,就是委托别人帮你完成的意思。比如 我写了个interface,服务器返给我我要的数据,同时告诉我success,那么我在controller怎么接收到这个interface的信息呢。 我的实现是这样子的:在interface中写一个delegate,(这个delegate 可以直接继承自 Objective - C protocol,也可以直接写在其他的类里面),让返回成功和失败时执行 deleg... 阅读全文
posted @ 2012-09-10 21:35
SuperHappy
阅读(10299)
评论(0)
推荐(0)

浙公网安备 33010602011771号