摘要:
设备的方向:[UIDevicecurrentDevice].orientation;当前程序的方向: [UIApplication sharedApplication].statusBarOrientation;viewController的方向:self.interfaceOrientation;
阅读全文
posted @ 2013-10-11 10:26
童话DY
阅读(173)
推荐(0)
摘要:
Icon.png 57x57 iphone 应用图标Icon@2x.png 114x114 iphone(Retina显示屏) 应用图标Icon-72.png 72x72 ipad 应用图标Icon-72@2x.png 144x144 ipad(Retina显示屏) 应用图标Icon-Small.png 29x29 iphone 系统设置和搜索结果图标Icon-Small@2x.png 58x58 iphone(Retina显示屏) 系统设置...
阅读全文
posted @ 2013-09-27 14:47
童话DY
阅读(546)
推荐(0)
摘要:
IOS7新增三个app图标'120x120','76x76','152x152'
阅读全文
posted @ 2013-09-27 14:45
童话DY
阅读(358)
推荐(0)
摘要:
第一种方法:float sysVolume = 0.0; UInt32 propertySize = sizeof(CFStringRef); AudioSessionGetProperty(kAudioSessionProperty_CurrentHardwareOutputVolume, &propertySize, &sysVolume);第二种方法:[[MPMusicPlayerControllera...
阅读全文
posted @ 2013-09-26 16:23
童话DY
阅读(787)
推荐(0)
摘要:
用法:1.解压framework.zip ,将framework拖入XCODE。2.解压reveal.app.zip ,运行reveal。3.在XCODE中用模拟器运行工程。4.在reveal中选择连接模拟器即可。
阅读全文
posted @ 2013-09-24 13:37
童话DY
阅读(405)
推荐(0)
摘要:
在IOS7之前,我们更改系统的UIAlertView,以实现自己想要的效果:#pragma mark -- UIAlertViewDelegate//实现代理增加网络指示器- (void)willPresentAlertView:(UIAlertView *)alertView{ indicator = [[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite]; indicator.frame = CGRectMake(110, 20, 50, ...
阅读全文
posted @ 2013-09-24 10:23
童话DY
阅读(1598)
推荐(0)
摘要:
可以使用UIApplication类的openURL:方法从一个应用程序来启动另一个应用程序。启动Mail应用程序:NSURL*url=[NSURLURLWithString:@"mailto:steve@apple.comsubject= test"];[[UIApplicationsharedApplication] openURL:url];启动SMS应用程序:NSURL*url=[NSURLURLWithString: -"sms:555-1234"]; [[UIApplicationsharedApplication] -penURL:url]
阅读全文
posted @ 2013-09-23 16:42
童话DY
阅读(272)
推荐(1)
摘要:
显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false
阅读全文
posted @ 2013-09-16 17:58
童话DY
阅读(292)
推荐(0)
摘要:
1,修改状态栏的样式和隐藏。首先,需要在Info.plist配置文件中,增加键:UIViewControllerBasedStatusBarAppearance,并设置为YES;然后,在UIViewController子类中实现以下两个方法:- (UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleLightContent;}- (BOOL)prefersStatusBarHidden{ return NO;}最后,在需要刷新状态栏样式的时候,调用[self setNeedsStatusBarAppear...
阅读全文
posted @ 2013-09-11 17:59
童话DY
阅读(642)
推荐(0)
摘要:
NSObject中静态的cancelPreviousPerformRequestsWithTarget方法 可以取消 之前发出的performSelector ;cancelPreviousPerformRequestsWithTarget:selector:object: 可以针对某一个performSelector 进行取消;
阅读全文
posted @ 2013-09-05 18:15
童话DY
阅读(411)
推荐(0)