iOS教程
大锐哥
这个作者很懒,什么都没留下…
展开
-
大锐哥的iOS开发教程(1)对象Objects
[img]http://img.my.csdn.net/uploads/201303/16/1363403516_5879.png[/img] [img]http://img.my.csdn.net/uploads/201303/16/1363403507_9552.png[/img] [img]http://img.my.csdn.net/uploads/201303/16/1363...2014-02-03 15:31:09 · 102 阅读 · 0 评论 -
iOS Dev (48) initializer 和 convenience constructor
iOS Dev (48) initializer 和 convenience constructor 作者:大锐哥 博客:http://prevention.iteye.com initializer 这个你应该很熟悉。 - (id)initWithSomething; convenience constructor 但是在实际运用中,我们经常用的写法是: [[Foo ...2014-02-06 20:36:27 · 78 阅读 · 0 评论 -
iOS Dev (49) 苹果官方 SpriteKit Game 模版
iOS Dev (49) 苹果官方 SpriteKit Game 模版 作者:大锐哥 博客:http://prevention.iteye.com 基本架构 - AppDelegate - ViewController:基础的 VC。 - MyScene:动画场景,处理动作等等。 在 AppDelegate 中实例化一个 ViewController,在 ViewControll...2014-02-06 23:23:25 · 76 阅读 · 0 评论 -
iOS Dev (50)用代码实现图片加圆角
用代码实现图片加圆角: iconView.layer.masksToBounds = YES; iconView.layer.cornerRadius = 3;2014-02-10 18:19:28 · 82 阅读 · 0 评论 -
iOS Dev (51)加急审核
https://developer.apple.com/appstore/contact/?topic=expedite2014-02-11 20:40:28 · 85 阅读 · 0 评论 -
iOS Dev (52)在Xcode中对iOS应用进行名称修改
http://zengwu3915.blog.163.com/blog/static/2783489720136210252843/2014-02-19 02:06:48 · 80 阅读 · 0 评论 -
iOS Dev (53) 修复UIImagePickerController偷换StatusBar颜色的问题
iOS Dev (53) 修复UIImagePickerController偷换StatusBar颜色的问题 作者:大锐哥 博客:http://prevention.iteye.com - - (void)navigationController:(UINavigationController *)navigationController willShowViewControlle...2014-02-23 00:09:40 · 109 阅读 · 0 评论 -
iOS Dev (54) 键盘弹出后收起时View随之移动
iOS Dev (54) 键盘弹出后收起时View随之移动 作者:大锐哥 博客:http://prevention.iteye.com - 添加监听 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(...2014-02-23 12:00:30 · 153 阅读 · 0 评论 -
iOS Dev (55) 获取当前年、月、日等信息
iOS Dev (55) 获取当前年、月、日等信息 作者:大锐哥 博客:http://prevention.iteye.com - NSDate *now = [NSDate date]; NSCalendar *calendar = [NSCalendar currentCalendar]; NSUInteger unitFlags = NSYearCalenda...2014-02-23 12:55:40 · 95 阅读 · 0 评论 -
iOS Dev (56) iTunes Store 销售日报更新时间
iOS Dev(56) iTunes Store 销售日报更新时间 - 日报出的时间是730左右。 - 销售截止是中国时间下午3点。 参考:http://www.cocoachina.com/bbs/read.php?tid=59116 ...2014-03-02 18:38:43 · 92 阅读 · 0 评论 -
iOS Dev (57) 解决UITableView重绘导致重叠的问题
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { NSString * cellID = @"basePlayerControlSelected"; UITableViewCell * cell = [tableVi...2014-03-04 10:59:59 · 105 阅读 · 0 评论 -
iOS Dev (47) 用代码获取屏幕尺寸
iOS Dev (47) 用代码获取屏幕尺寸 作者:大锐哥 博客:http://prevention.iteye.com 获取屏幕尺寸 [[[UIScreen mainScreen] currentMode].size.width]; [[[UIScreen mainScreen] currentMode].size.height]; 如上的代码在不同设备上,得到的值是不同...2014-02-06 18:09:19 · 70 阅读 · 0 评论 -
iOS Dev (46) iOS 的枚举
iOS Dev (46) iOS 的枚举 作者:大锐哥 博客:http://prevention.iteye.com 不就是 C 吗? 是的,就是 C,所以你用 C 的枚举定义方式是 OK 带。如下: typedef enum { TypeA = 0, TypeB, TypeC, TypeD } MyType; MyType 是枚...2014-02-06 17:58:25 · 83 阅读 · 0 评论 -
iOS Dev (45) iOS图标与切片处理工具Prepo
iOS Dev (45) iOS图标与切片处理工具Prepo 作者:大锐哥 博客:http://prevention.iteye.com 基本介绍 在 Mac App Store 下载 Prepo,免费的哦。用它可以生成 iOS 所需带所有图片,还可以批量地把@2x切片导出没有@2x的图片。 图标生成 iOS现在需要哪些图片: iOS 7 APP icon on iPad ...2014-02-05 23:40:36 · 110 阅读 · 0 评论 -
大锐哥的iOS教程(2)用xib完成HelloWorld工程
iOS Dev (2) HelloWorld with .xib 作者:大锐哥 创建工程 Cmd + Shift + N 选择 Single View Application; 填写options Class Prefix可以填HelloWorld Product Name也可以填HelloWorld company.identifier填com.xxx D...2014-02-03 15:45:19 · 96 阅读 · 0 评论 -
大锐哥的iOS开发教程(3)用代码实现HelloWorld工程
iOS Dev (3) HelloWorld with codes 作者:爱欧艾斯鸟 删除 删除 HelloWorldViewController.xib文件 删除 HelloWorldViewController.m 中的 viewDidLoad 添加 添加 loadView 到 HelloWorldViewController.m - (void)loadView ...2014-02-03 15:46:42 · 82 阅读 · 0 评论 -
大锐哥的iOS开发教程(4)用TTTAttributedLabel创建变化丰富的UILabel
iOS Dev (4) 用TTTAttributedLabel创建变化丰富的UILabel 2013年8月16日 1. 不同颜色的字段混合在一个Label里怎么实现? 看TTTAttributedLabel是怎么做的: TTTAttributedLabel *hintLabel1 = [[TTTAttributedLabel alloc] initWithFrame:CGRectM...原创 2014-02-03 15:48:01 · 96 阅读 · 0 评论 -
大锐哥的iOS开发教程(5)微信iOS SDK
iOS Dev (5) 微信iOS SDK 1 登记应用 登录微信开放平台网站,登记你的应用(前提是你得有QQ号),目前只支持iOS和Android平台。然后会得到一个AppID,需要在你自己的iOS或Android应用中用到, 2 API Weixin iOS SDK主要有以下三个文件: libWeChatSDK.a WXApp.h WXAppObject.h Weixin...2014-02-03 15:56:52 · 96 阅读 · 0 评论 -
iOS Dev (38) 你不一定看到懂了 main.m 文件
iOS Dev (38) 你不一定看到懂了 main.m 文件 作者:大锐哥 博客:http://blog.csdn.net/prevention 先看看代码 #import <UIKit/UIKit.h> #import "AppDelegate.h" int main(int argc, char * argv[]) { @autorelea...2014-02-03 17:41:00 · 181 阅读 · 0 评论 -
iOS Dev (40) UIView 的几个重要方法
iOS Dev (40) UIView 的几个重要方法 作者:大锐哥 博客:http://blog.csdn.net/prevention loadView 创建视图,即 viewDidLoad 自定义视图。 viewWillAppear 更新视图信息。 viewDidAppear 执行行为,比如运行动画效果。 转载请注明来自大锐哥的博客:http://blog.c...2014-02-04 19:04:24 · 51 阅读 · 0 评论 -
iOS Dev (41) 为什么iPhone应用很少选择Upside Down
iOS Dev (41) 为什么iPhone应用很少选择Upside Down 作者:大锐哥 博客:http://blog.csdn.net/prevention 我们都有这样一种感受:iPhone应用很少选择Upside Down。 相比之下,iPad应用,如果支持旋转屏(一般都支持),都会支持4个方向。 其实,原因很简单。iPhone 在 Upside down 时,如果有...2014-02-04 19:04:53 · 84 阅读 · 0 评论 -
iOS Dev (42) 三种定位方式的性能比较
iOS Dev (42) 三种定位方式的性能比较 作者:大锐哥 博客:http://blog.csdn.net/prevention 定位源 耗时 耗能 精度 蜂窝 最快 很省电 低 Wi-Fi 一般 一般 较高 GPS 最慢 最费电 +/-5米或更精确 转载请注明来自大锐哥的博客:http://blog.csdn.net/preve...2014-02-04 19:05:19 · 68 阅读 · 0 评论 -
iOS Dev (43) 用loadView必须要注意的几点
iOS Dev (43) 用loadView必须要注意的几点 作者:大锐哥 博客:http://prevention.iteye.com 永远不要主动调用 loadView 方法 ViewController 会在 view 的属性被请求且当前 view 为 nil 时调用 loadView。 如果你是用 xib 创建 view 并初始化 ViewController,意味着你要...2014-02-04 22:51:49 · 87 阅读 · 0 评论 -
iOS Dev (44) SKTextureAtlas简介
iOS Dev (44) SKTextureAtlas简介 作者:大锐哥 博客:http://prevention.iteye.com 头文件定义 SpriteKit/SKTextureAtlas.h #import <Foundation/Foundation.h> #import <SpriteKit/SKTexture.h> SK_EXPORT...2014-02-05 19:11:51 · 92 阅读 · 0 评论 -
iOS Dev (58) 打包发布缺少57x57、72x72图标问题
http://stackoverflow.com/questions/18908019/how-to-add-icon-57x57-in-xcode-5原创 2014-03-14 01:57:39 · 185 阅读 · 0 评论