会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
OIMM
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
35
36
37
38
39
40
41
42
43
下一页
2015年9月2日
电影播放
摘要: #import "ViewController.h"#import @interface ViewController (){ AVPlayer *player; UISlider *slider; UILabel *label; UISlider *volumeSlider...
阅读全文
posted @ 2015-09-02 18:15 OIMMZC
阅读(341)
评论(0)
推荐(0)
2015年9月1日
图片变动动画
摘要: - (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)
设置textview显示框内容不可编辑不可选择。
摘要: f1textview.allowsEditingTextAttributes=NO;////////////设置不可编辑不能用这个,得用下面的一个 textView.editable=NO;//设置可编辑属性 textView.selectable=NO;//设置可选择属性
阅读全文
posted @ 2015-09-01 14:52 OIMMZC
阅读(1965)
评论(0)
推荐(0)
Tabbar视图切换,返回上一视图,添加item
摘要: 前面有一篇博文iOS学习之Tab Bar的使用和视图切换这是在AppDelegate里使用Tabbar,这样的程序打开就是TabbarView了,有时候我们需要给程序做一些帮助页面,或者登录页面,之后才跳转到tabbar View里,或者后面的页面才使用Tabbar的,那这样怎么实现呢?我们建立一个...
阅读全文
posted @ 2015-09-01 08:06 OIMMZC
阅读(764)
评论(0)
推荐(0)
2015年8月31日
页面转换方法
摘要: 控制器视图之间的转场,你可以使用模态方式或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)
设置textview背景色为透明
摘要: 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)
2015年8月28日
按钮下面滑块移动
摘要: [UIView animateWithDuration:0.5 animations:^{ CGAffineTransform moveTrans2=CGAffineTransformMakeTranslation(160, 0);//相对于初始位置移动的位置,原位置(0,0) [_u...
阅读全文
posted @ 2015-08-28 09:48 OIMMZC
阅读(267)
评论(0)
推荐(0)
2015年8月27日
识别单击还是双击
摘要: //最简单-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ [NSObject cancelPreviousPerformRequestsWithTarget:self]; UITouch *touch = ...
阅读全文
posted @ 2015-08-27 13:08 OIMMZC
阅读(322)
评论(0)
推荐(0)
上一页
1
···
35
36
37
38
39
40
41
42
43
下一页
公告