摘要: #import "ViewController.h"#import @interface ViewController (){ AVPlayer *player; UISlider *slider; UILabel *label; UISlider *volumeSlider... 阅读全文
posted @ 2015-09-02 18:15 OIMMZC 阅读(341) 评论(0) 推荐(0)
摘要: - (void)setAnimationMIC{ NSMutableArray *arrayM = [NSMutableArray array]; //从路径取出图像 加载到数组 for (int i =0; i<4; i++) { UIImage *image = ... 阅读全文
posted @ 2015-09-01 18:25 OIMMZC 阅读(237) 评论(0) 推荐(0)
摘要: f1textview.allowsEditingTextAttributes=NO;////////////设置不可编辑不能用这个,得用下面的一个 textView.editable=NO;//设置可编辑属性 textView.selectable=NO;//设置可选择属性 阅读全文
posted @ 2015-09-01 14:52 OIMMZC 阅读(1965) 评论(0) 推荐(0)
摘要: 前面有一篇博文iOS学习之Tab Bar的使用和视图切换这是在AppDelegate里使用Tabbar,这样的程序打开就是TabbarView了,有时候我们需要给程序做一些帮助页面,或者登录页面,之后才跳转到tabbar View里,或者后面的页面才使用Tabbar的,那这样怎么实现呢?我们建立一个... 阅读全文
posted @ 2015-09-01 08:06 OIMMZC 阅读(764) 评论(0) 推荐(0)
摘要: 控制器视图之间的转场,你可以使用模态方式或push方式。模态方式(presentViewcontroller)默认的动画效果是从下到上显示视图,当然你可以修改控制器的一个属性modalTransitionStyle来设置转场的动画。push方式(pushViewController)的前提要求当前控... 阅读全文
posted @ 2015-08-31 21:27 OIMMZC 阅读(380) 评论(0) 推荐(0)
摘要: - (IBAction)doNetButton:(id)sender { Reachability *hostReach=[Reachability reachabilityWithHostName:@"www.baidu.com"];//网络可达性 NetworkStatus status=[... 阅读全文
posted @ 2015-08-31 17:25 OIMMZC 阅读(278) 评论(0) 推荐(0)
摘要: //// AchievementViewController.m// LIBAOZHENG0826//// Created by 张艳锋 on 15/8/27.// Copyright (c) 2015年 张艳锋. All rights reserved.//#import "Achievement... 阅读全文
posted @ 2015-08-31 16:56 OIMMZC 阅读(272) 评论(0) 推荐(0)
摘要: UITextView *textView=[[UITextView alloc]initWithFrame:CGRectMake(20, 40, 150, 170)];//初始化并设置大小 textView.text= [ModelDataAll dataDetailFromModel:poet_... 阅读全文
posted @ 2015-08-31 16:34 OIMMZC 阅读(1425) 评论(0) 推荐(0)
摘要: [UIView animateWithDuration:0.5 animations:^{ CGAffineTransform moveTrans2=CGAffineTransformMakeTranslation(160, 0);//相对于初始位置移动的位置,原位置(0,0) [_u... 阅读全文
posted @ 2015-08-28 09:48 OIMMZC 阅读(267) 评论(0) 推荐(0)
摘要: //最简单-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ [NSObject cancelPreviousPerformRequestsWithTarget:self]; UITouch *touch = ... 阅读全文
posted @ 2015-08-27 13:08 OIMMZC 阅读(322) 评论(0) 推荐(0)