摘要: NSString*deviceType=[UIDevicecurrentDevice].model;NSLog(@"deviceType=%@",deviceType);//@"iphone"/@"ipod"/@"ipad"NSRangerange=[deviceTyperangeOfString:... 阅读全文
posted @ 2015-09-11 09:55 OIMMZC 阅读(191) 评论(0) 推荐(0)
摘要: 再正式开始之前,先来介绍一下IOS的键盘类型:一、键盘风格UIKit框架支持8种风格键盘?12345678910typedef enum { UIKeyboardTypeDefault, // 默认键盘:支持所有字符 UIKeyboardTypeASCIICapable, // 支持ASCII的默认... 阅读全文
posted @ 2015-09-11 09:21 OIMMZC 阅读(339) 评论(0) 推荐(0)
摘要: -(void)button{ NSArray *arrbutton=[LBZModelDataAll dataArrayFromModel:poet_list];// NSLog(@"%@",arrbutton); NSLog(@"%lu",(unsigned long)arrbutton.c... 阅读全文
posted @ 2015-09-10 17:20 OIMMZC 阅读(252) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2015-09-09 15:20 OIMMZC 阅读(4) 评论(0) 推荐(0)
摘要: 调用一次计时器方法:myTimer=[NSTimerscheduledTimerWithTimeInterval:1.5target:selfselector:@selector(scrollTimer)userInfo:nilrepeats:NO];//不重复,只调用一次。timer运行一次就会自... 阅读全文
posted @ 2015-09-07 11:53 OIMMZC 阅读(234) 评论(0) 推荐(0)
摘要: #pragma mark UISearchBarDelegate 中可选实现的方法//执行searchBar代理方法(开始编辑)-(void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText{ //如果文... 阅读全文
posted @ 2015-09-07 09:33 OIMMZC 阅读(271) 评论(0) 推荐(0)
摘要: UINavigationController是IOS编程中的一个view controller的容器,通过栈管理viewControllers,每一次push操作都将在栈顶添加一个view controller,然后通过pop将该栈最顶端的controller移除。我们在工程中,通常会在contro... 阅读全文
posted @ 2015-09-07 09:17 OIMMZC 阅读(2779) 评论(0) 推荐(0)
摘要: //// VideoViewController.m// LIBAOZHENG0826//// Created by 张艳锋 on 15/8/30.// Copyright (c) 2015年 张艳锋. All rights reserved.//#import "VideoViewControll... 阅读全文
posted @ 2015-09-06 16:59 OIMMZC 阅读(281) 评论(0) 推荐(0)
摘要: static int z=0;-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ if (z==0) { self.view.backgroundColor=[UIColor blackColor]; _do... 阅读全文
posted @ 2015-09-06 16:45 OIMMZC 阅读(353) 评论(0) 推荐(0)
摘要: 今天把APP里常用小功能 例如发短信、发邮件、打电话。全部拿出来简单说说它们的实现思路。1.发短信实现打电话的功能,主要二种方法,下面我就分别说说它们的优缺点。1.1.发短信(1)——URL // 直接拨号,拨号完成后会停留在通话记录中1、方法:NSURL *url = [NSURL URLWith... 阅读全文
posted @ 2015-09-06 14:49 OIMMZC 阅读(255) 评论(0) 推荐(0)