自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 UIWindow Notifications

UIWindowDidBecomeVisibleNotification UIWindowDidBecomeHiddenNotification  UIWindowDidBecomeKeyNotification  UIWindowDidResignKeyNotification   UIKeyboardWillShowNotification  UIKeyboardDidSh

2013-04-19 10:54:57 710

原创 UINib Class的学习

UINib :  object wrappers , or containers. An UINib object caches the contents of a nib file in memory. #define DARK_BACKGROUND  [UIColor colorWithRed:151.0/255.0 green:152.0/255.0 blue:155.0/2

2013-04-17 11:33:26 1284

原创 获取iOS本地空间大小

采用一个类别:  UIDevice-hardware.h                               UIDevice-hardware.m 里面有相应的方法。。。。

2013-04-16 19:05:31 662

原创 certificate

Request:                    Please read  each sentence carefully!  Generate:

2013-04-16 17:02:01 493

原创 Push Notification Service (APNs)

TLS:   transport layer security (运输层安全协议) TLS:    iOS  Application:         share token token trust (Notification)

2013-04-16 16:32:21 768

原创 about backgroundTask

beginBackgroundTaskWithExpirationHandler:                                 Marksthe beginning of anew long-running background task. - (UIBackgroundTaskIdentifier)beginBackgroundTaskWithExpirationHan

2013-04-16 13:56:32 471

原创 backgroundTask

Implementing Long-Running Background Tasks For tasks that require more execution time to implement, you must request specific permissions to run them in the background without their being suspended

2013-04-16 11:02:18 695

原创 openURL(注意backgroundTask 的学习)

pseudo: if( [ UIApplication sharedApplication] canOpenURL:url){ openURL } idleTimerDisabled=NO; //屏幕可关 idleTimerDisabled=YES; //闲散的timer,不让你去计算了。 networkActivityIndicatorVisible statusB

2013-04-16 10:21:31 624

原创 standard system viewcontroller

2013-04-16 10:03:41 442

原创 presenting view controller and presenting modal view controller

当present 时,会有一个关系: presenting 与presented.主动与被动。 何时尝试一下present navigationController. 在A去呈现B时, 首先创建B。 B的相应属性的设置:B.modalTransitionStyle

2013-04-16 10:00:10 545

原创 关于屏幕旋转

注意相应的几个顺序 重点关注:    willRotateToInterfaceOrientation:duration:    didRotateFromInterfaceOrientation: 这两个方法

2013-04-16 09:41:48 449

原创 关于屏幕旋转的问题

当设备方向发生变化时,UIKit 会收到相应通知,这个时候;  UIApplication object 和 the root view controller 来决定, 这个旋转是否可以。如果两者都说可以,那么就行;否则的话,就转不了。 Returns whether the view controller’s contents should auto rotate.

2013-04-15 14:51:59 414

原创 iOS的UIDevice

关于这个UIDevice的几个方向的问题:要看Home键。 LandscapeLeft  LandscapeRight; 在不锁屏的情况下面,当屏幕在旋转的过程中,system sends out :    UIDeviceOrientationDidChangeNotification 如果有需求的话,可以在消息中心中注册这个消息。

2013-04-15 14:09:00 482

转载 iOS生成随机数

ios 有如下三种随机数方法: 1.    srand((unsigned)time(0));  //不加这句每次产生的随机数不变         int i = rand() % 5;       2.    srandom(time(0));         int i = random() % 5; 3.    int i = arc4random() % 5 ;

2013-04-03 14:47:57 795

转载 iOS生成一个8位的随机密码

-(NSString *)randomPassword{     //自动生成8位随机密码     NSTimeInterval random=[NSDate timeIntervalSinceReferenceDate];     NSLog(@"now:%.8f",random);     NSString *randomString = [NSString strin

2013-04-03 13:04:36 2979

转载 iOS 删除指定类型的文件

有时候需要在iOS系统里面,删除指定文件夹的内容,文件夹里面可能是文件,也可能包含有文件夹。 删除指定类型的文件。方法如下: NSString *extension = @"m4r"; NSFileManager *fileManager = [NSFileManager defaultManager]; NSArray *paths = NSSearchPathForDirector

2013-04-03 10:37:30 592

原创 iOS开发presentModalViewController ,若有UITextField,键盘无法下去的问题

当我们在某个地方写了  [myTextField  resignFirstResponder]; 时可能并不起作用,这时就可以在被推出的那个controller当中,写上这个方法,那么键盘就会限下去了。 - (BOOL)disablesAutomaticKeyboardDismissal {        return NO; } 在来看一下这个方法的解释:      // P

2013-04-02 18:04:48 1261

原创 ARC与非ARC_ultimatexin

如果,你的开发基调是不用自动内存释放,又发现一些ARC的代码比较好,那么,对于这些个极其特殊的分子,你要在其compile source 中, 点击项目导航文件--> 选中Targets--> 选择 Build Phases --> 展开Compile Sources; 之后对于这些添加     -fobjc-arc  (说明这些外来客是要用arc的)       如果,开发基调为AR

2013-04-02 17:41:54 376

原创 Xcode设置默认括号对齐方式_ultimateXin

在终端(terminal)中输入命令:defaults write com.apple.Xcode XCCodeSenseFormattingOptions -dict BlockSeparator "\n"

2013-04-02 17:28:30 1103

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除