ios-新手学习笔记
空有人心遮半面
这个作者很懒,什么都没留下…
展开
-
iOS学习笔记(一)---------iOS真机调试
1、登录:首先登录https://developer.apple.com/ios/manage/overview/index.action登录后会进入如下界面: 图一2、制作证书,提前准备好证书,也可以用时制作。1)Finder->应用->钥匙串访问图二这将会打开如下图所示的页面,按照图示内容进行填写:转载 2013-08-28 16:52:47 · 501 阅读 · 0 评论 -
UITableView 异步加载图片,cell自适应高度!项目常用。
UITableView 在ios里面算是很常用的的ui控件!用来显示列表数据,当显示固定消息体的时候挺方便的!一旦遇到消息内容不一致,然后每行的高度都不一样的时候,就需要我们自己来手动控制每行的高度啦!先看看 UITableViewDelegate UITableViewDelegate 几个常用的方法!// UITableView 构造CELL- (UI原创 2013-12-30 18:24:12 · 3180 阅读 · 0 评论 -
IOS UILabel 增加点击事件。
UITapGestureRecognizer *tapRecognizerWeibo=[[UITapGestureRecognizer alloc] initWithTarget:selfaction:@selector(doIt:)]; youLabel.userInteractionEnabled=YES; [youLabel addGestureRecognizer:ta原创 2013-11-28 10:39:06 · 9126 阅读 · 0 评论 -
iphone程序设置icon图标
iPhone and iPodApplication Icon for iPhone (retina display)Icon@2x.png114 x 114Application Icon icon for iPhoneIcon.png57 x 57Settings/Spotlight icon for iPhone原创 2013-11-22 15:51:49 · 779 阅读 · 0 评论 -
Xcode5 icon去掉高光!
在配置文件里面加上这2个属性Icon already includes gloss effects 为YES!原创 2013-11-22 16:11:10 · 1341 阅读 · 0 评论 -
ios 修改欢迎界面图片
iphone5之后 屏幕放大到了4寸我们需要在项目里面添加 Default-568h@2x.png 这样一个图片格式为 640*1136只有添加这样一张图片,手机才认为支持4寸! Default.png 320x480 Default@2x.png 640x960 Default-568h.png 320*568原创 2013-11-22 17:35:27 · 745 阅读 · 0 评论 -
判断是否第一次运行APP,以便是否进入APP介绍界面。
didFinishLaunchingWithOptions 添加以下代码,if (![[NSUserDefaults standardUserDefaults] boolForKey:@"everLaunched"]) {[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"everLaunched"];原创 2013-09-16 23:34:34 · 1019 阅读 · 0 评论 -
自定义UINavigationController背景-按钮-标题。5.0前后兼容
5.0之后,直接能设置导航栏的背景图片。UINavigationController *navigation=[[UINavigationController alloc] initWithRootViewController:youViewController];[navigation.navigationBar setBackgroundImage:[UIImage image原创 2013-09-10 21:24:45 · 505 阅读 · 0 评论 -
UINavigationController 界面跳转
先初始化UINavigationControllerself.iNav = [[UINavigationController alloc]initWithRootViewController:youUIViewController];把根视图设置为导航控制器。window.rootViewController = self.iNav;添加一个界面。You原创 2013-09-10 08:05:11 · 1365 阅读 · 0 评论 -
俩个UIViewController之间跳转过度动画 左右推出
youOther=[[OtherViewControlleralloc] init];CATransition *myTransition=[CATransitionanimation];//创建CATransitionmyTransition.duration=0.3;//持续时长0.3秒myTransition.timingFunction=UIViewAn原创 2013-09-10 07:37:34 · 1847 阅读 · 0 评论 -
iOS学习笔记(二)---------创建项目
前面写到连接真机做测试,现在真机连接上后,开始做创建项目吧。按照需求填写项目信息。创建完后的默认项目文件列表。快捷键 command+N 创建文件填写父类, 继承 UIViewController类 。 下面的with xib for user interface 记得勾选上。 创建完后,现在原创 2013-08-28 17:11:23 · 502 阅读 · 0 评论 -
iOS后台播放网络音乐
第一步: 第二步:in the didFinishLaunchingWithOptions. UIDevice *thisDevice = [UIDevicecurrentDevice]; if([thisDevicerespondsToSelector:@selector(isMultitaskingSupported)原创 2015-07-30 22:09:09 · 493 阅读 · 0 评论