04 2013 档案
摘要:ios 调用系统打电话一般有三种方式(1)拨打电话完毕会停留在打电话app,不会返回原来应用[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://10086"]];(2)拨打电话完毕,会返回原app,不过改方法...
阅读全文
摘要:ios开发中,在主线程之外的线程更新主线程所显示的界面元素,不能直接调用主线程的类的更新界面的方法,否则界面看不到任何结果,而是需要有个缓冲,叫做 performSelectorOnMainThread使用方法是,在线程调用到更新界面那个类的时候,在更新界面前,通过如下调用[self perform...
阅读全文
摘要:1.0 MPMediaQueue MPMediaQuery *allMediaQueue = [[[MPMediaQuery alloc]init] autorelease]; [self.mediaItemArray addObjectsFromArray:[allMediaQueue...
阅读全文
摘要:UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 44)]; label.font=[UIFont systemFontOfSize:16]; label.backgroundColor = [UI...
阅读全文

浙公网安备 33010602011771号