09 2015 档案
摘要:最下面一行为刚刚添加的iOS9中新增App Transport Security(简称ATS)特性, 主要使到原来请求的时候用到的HTTP,都转向TLS1.2协议进行传输。这也意味着所有的HTTP协议都强制使用了HTTPS协议进行传输。原文如下:App Transport SecurityApp T...
阅读全文
摘要:NSString*deviceType=[UIDevicecurrentDevice].model;NSLog(@"deviceType=%@",deviceType);//@"iphone"/@"ipod"/@"ipad"NSRangerange=[deviceTyperangeOfString:...
阅读全文
摘要:再正式开始之前,先来介绍一下IOS的键盘类型:一、键盘风格UIKit框架支持8种风格键盘?12345678910typedef enum { UIKeyboardTypeDefault, // 默认键盘:支持所有字符 UIKeyboardTypeASCIICapable, // 支持ASCII的默认...
阅读全文
摘要:-(void)button{ NSArray *arrbutton=[LBZModelDataAll dataArrayFromModel:poet_list];// NSLog(@"%@",arrbutton); NSLog(@"%lu",(unsigned long)arrbutton.c...
阅读全文
该文被密码保护。
摘要:调用一次计时器方法:myTimer=[NSTimerscheduledTimerWithTimeInterval:1.5target:selfselector:@selector(scrollTimer)userInfo:nilrepeats:NO];//不重复,只调用一次。timer运行一次就会自...
阅读全文
摘要:#pragma mark UISearchBarDelegate 中可选实现的方法//执行searchBar代理方法(开始编辑)-(void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText{ //如果文...
阅读全文
摘要:UINavigationController是IOS编程中的一个view controller的容器,通过栈管理viewControllers,每一次push操作都将在栈顶添加一个view controller,然后通过pop将该栈最顶端的controller移除。我们在工程中,通常会在contro...
阅读全文
摘要://// VideoViewController.m// LIBAOZHENG0826//// Created by 张艳锋 on 15/8/30.// Copyright (c) 2015年 张艳锋. All rights reserved.//#import "VideoViewControll...
阅读全文
摘要:static int z=0;-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ if (z==0) { self.view.backgroundColor=[UIColor blackColor]; _do...
阅读全文
摘要:今天把APP里常用小功能 例如发短信、发邮件、打电话。全部拿出来简单说说它们的实现思路。1.发短信实现打电话的功能,主要二种方法,下面我就分别说说它们的优缺点。1.1.发短信(1)——URL // 直接拨号,拨号完成后会停留在通话记录中1、方法:NSURL *url = [NSURL URLWith...
阅读全文
摘要:#import "ViewController.h"#import @interface ViewController (){ AVPlayer *player; UISlider *slider; UILabel *label; UISlider *volumeSlider...
阅读全文
摘要:- (void)setAnimationMIC{ NSMutableArray *arrayM = [NSMutableArray array]; //从路径取出图像 加载到数组 for (int i =0; i<4; i++) { UIImage *image = ...
阅读全文
摘要:f1textview.allowsEditingTextAttributes=NO;////////////设置不可编辑不能用这个,得用下面的一个 textView.editable=NO;//设置可编辑属性 textView.selectable=NO;//设置可选择属性
阅读全文
摘要:前面有一篇博文iOS学习之Tab Bar的使用和视图切换这是在AppDelegate里使用Tabbar,这样的程序打开就是TabbarView了,有时候我们需要给程序做一些帮助页面,或者登录页面,之后才跳转到tabbar View里,或者后面的页面才使用Tabbar的,那这样怎么实现呢?我们建立一个...
阅读全文