`
prevention
  • 浏览: 70742 次
社区版块
存档分类
最新评论
文章列表
http://stackoverflow.com/questions/18908019/how-to-add-icon-57x57-in-xcode-5
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {     NSString * cellID = @"basePlayerControlSelected";   UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:cellID];   if (cell == nil) { cell = [[UITableView ...
iOS Dev(56) iTunes Store 销售日报更新时间   - 日报出的时间是730左右。 - 销售截止是中国时间下午3点。   参考:http://www.cocoachina.com/bbs/read.php?tid=59116
iOS Dev (55) 获取当前年、月、日等信息 作者:大锐哥 博客:http://prevention.iteye.com - NSDate *now = [NSDate date]; NSCalendar *calendar = [NSCalendar currentCalendar]; NSUInteger unitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit | NSHourCalendarUnit | NSMinuteCa ...
iOS Dev (54) 键盘弹出后收起时View随之移动 作者:大锐哥 博客:http://prevention.iteye.com - 添加监听 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeContentViewPosition:) name:UIKeyboardWillShowNoti ...
iOS Dev (53) 修复UIImagePickerController偷换StatusBar颜色的问题 作者:大锐哥 博客:http://prevention.iteye.com - - (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated { // bug fixes: UIIMagePickerCo ...
http://zengwu3915.blog.163.com/blog/static/2783489720136210252843/
https://developer.apple.com/appstore/contact/?topic=expedite
用代码实现图片加圆角:       iconView.layer.masksToBounds = YES;       iconView.layer.cornerRadius = 3;
iOS Dev (49) 苹果官方 SpriteKit Game 模版 作者:大锐哥 博客:http://prevention.iteye.com 基本架构 - AppDelegate - ViewController:基础的 VC。 - MyScene:动画场景,处理动作等等。 在 AppDelegate 中实例化一个 ViewController,在 ViewController 中实例化一个 MyScene。 AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingW ...
iOS Dev (48) initializer 和 convenience constructor 作者:大锐哥 博客:http://prevention.iteye.com initializer 这个你应该很熟悉。 - (id)initWithSomething; convenience constructor 但是在实际运用中,我们经常用的写法是: [[Foo alloc] init]; 如果把这货定义成一个方法,如下: + (id)buildInstance; 除了写着简单,还有啥区别? initializer 会被编译器自动地写成: - ...
iOS Dev (47) 用代码获取屏幕尺寸 作者:大锐哥 博客:http://prevention.iteye.com 获取屏幕尺寸 [[[UIScreen mainScreen] currentMode].size.width]; [[[UIScreen mainScreen] currentMode].size.height]; 如上的代码在不同设备上,得到的值是不同的。 iPhone (3.5 inch): 320 x 480 iPhone Retina (3.5 inch): 640 x 960 iPhone Retina (4.0 inch): 640 ...
iOS Dev (46) iOS 的枚举 作者:大锐哥 博客:http://prevention.iteye.com 不就是 C 吗? 是的,就是 C,所以你用 C 的枚举定义方式是 OK 带。如下: typedef enum { TypeA = 0, TypeB, TypeC, TypeD } MyType; MyType 是枚举类型的名称。它的可能值就是 TypeA、TypeB、TypeC、TypeD,其中 TypeA 的值就是 0,依次其他的就是 1、2、3。 iOS 特有的方式呢? typedef NS_ENUM(N ...
iOS Dev (45) iOS图标与切片处理工具Prepo 作者:大锐哥 博客:http://prevention.iteye.com 基本介绍 在 Mac App Store 下载 Prepo,免费的哦。用它可以生成 iOS 所需带所有图片,还可以批量地把@2x切片导出没有@2x的图片。 图标生成 iOS现在需要哪些图片: iOS 7 APP icon on iPad 76x76, 152x152: Icon-76.png, Icon-76@2x.png iOS 6 APP icon on iPad 72x72, 144x144: Icon-72.png, ...
iOS Dev (44) SKTextureAtlas简介 作者:大锐哥 博客:http://prevention.iteye.com 头文件定义 SpriteKit/SKTextureAtlas.h #import <Foundation/Foundation.h> #import <SpriteKit/SKTexture.h> SK_EXPORT @interface SKTextureAtlas : NSObject <NSCoding> + (SKTextureAtlas *)atlasNamed:(NSString *) ...
Global site tag (gtag.js) - Google Analytics