上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页
摘要: 关于linux上cron服务的python封装工具 阅读全文
posted @ 2014-07-28 11:17 小鼬就是我 阅读(2454) 评论(0) 推荐(0) 编辑
摘要: 双变button和点变button的xib设置. 阅读全文
posted @ 2013-12-24 10:19 小鼬就是我 阅读(555) 评论(0) 推荐(0) 编辑
摘要: 子类化NSWindow:- (void)awakeFromNib{ [selfsetStyleMask:NSBorderlessWindowMask]; [selfsetAcceptsMouseMovedEvents:YES]; [selfsetMovableByWindowBackground:YES]; [selfsetLevel:NSNormalWindowLevel]; [self setOpaque:NO]; [selfsetBackgroundColor:[NSColorclearColor]];}- (BOOL) canBecomeKeyWindow { return... 阅读全文
posted @ 2013-11-01 15:47 小鼬就是我 阅读(653) 评论(0) 推荐(0) 编辑
摘要: 点击target,然后,在Build Phases里的空白处用鼠标点一下(艹 变态) 这时,点最上面菜单:Editor/Add Build Phases/Add Copy Files Build Phas, 然后: 阅读全文
posted @ 2013-10-28 11:10 小鼬就是我 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 一劳永逸的解决NSImage绘制的时候绘到浮点值像素上造成的图像模糊. 阅读全文
posted @ 2013-10-25 09:02 小鼬就是我 阅读(1806) 评论(0) 推荐(0) 编辑
摘要: @interfaceAppDelegate(){ NSObject * obj_;}@property(retain) NSObject * obj;// 默认是atomic//@property(nonatomic, retain) NSObject * obj;@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ obj_ = [[NSObject alloc].. 阅读全文
posted @ 2013-09-09 10:48 小鼬就是我 阅读(222) 评论(0) 推荐(0) 编辑
摘要: ------------------ios7基于viewController隐藏状态条:通过ViewController重载方法返回枚举值的方法来控制状态栏的隐藏和样式。首先,需要在Info.plist配置文件中,增加键:UIViewControllerBasedStatusBarAppearance,并设置为YES;然后,在UIViewController子类中实现以下两个方法:- (UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleLightContent;}- (BOOL)prefersStatusBa... 阅读全文
posted @ 2013-08-29 10:59 小鼬就是我 阅读(6747) 评论(0) 推荐(0) 编辑
摘要: [NSAnimationContextbeginGrouping]; [[NSAnimationContextcurrentContext] setDuration:.1f]; [[self.windowanimator] setFrame:frmWin display:YES]; [[self.leftView animator] setFrame:frmTestView]; [[self.splitView animator] setFrame:frmSplitView]; [NSAnimationContextendGrouping]; 阅读全文
posted @ 2013-08-13 11:35 小鼬就是我 阅读(617) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cocoachina.com/bbs/read.php?tid=92404另外配合参考这里:https://github.com/ymsheng/ios-deviceUniqueIdentifier一.UDID(Unique Device Identifier)UDID是Unique Device Identifier的缩写,中文意思是设备唯一标识.在很多需要限制一台设备一个账号的应用中经常会用到,在Symbian时代,我们是使用IMEI作为设备的唯一标识的,可惜的是Apple官方不允许开发者获得设备的IMEI.ios5 sdk中的获取方法:[UIDevice cu 阅读全文
posted @ 2013-07-02 16:58 小鼬就是我 阅读(580) 评论(0) 推荐(0) 编辑
摘要: UIDevice的uniqueIdentifier方法在ios7就不支持了, 为了获得设备相关的唯一标识符,参考了这里:https://github.com/Itayber/UIDevice-uniqueID但是改了部分代码(下面会贴上代码). 另外,真机编译会出问题,解决记录如下:1. 把我修改了的UIDevice-uniqueID.h/m(见下面代码)加到工程里.2. 加IOKit.framework:把IOKit.framework(在/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Develo 阅读全文
posted @ 2013-07-02 15:50 小鼬就是我 阅读(5774) 评论(1) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页