`
文章列表
grep -d recurse "\n" classes| wc -l  上面classes是你代码的存放路径,如果你不是默认的Classes路径,则修改
山东首席网通DNS:202.102.152.3 (全省) 山东备用网通DNS:202.102.128.68(全省) 山东首席电信DNS:219.146.0.130 (全省) 山东备用电信DNS:291.150.32.132(全省) 网通用户最佳DNS设置: 主DNS:202.102.152.3 辅DNS:219.146.0.130 电信用户最佳DNS设置: 主DNS:219.146.0.130 辅DNS:202.102.152.3
Targets -> Build Phases -> Compile Sources 选择某文件,如果是要启用ARC(在不使用ARC的project) -fobjc-arc  如果要禁止ARC(在使用ARC的project) -fno-objc-arc
解决方法如下: 如图,通过PROJECT-Build Setting,然后把Build Active Architecture Only的值设置为Yes。 或者把Valid Architectures的值中的armv7s删除。 然后就只有静待第三方类库支持iOS6和iPhone5了。
原理:在程序切入到后台后,每十分钟就去执行一个动作来唤醒程序,由此来保证它一直在后台运行。 1、在Info.plist中添加UIBackgroundModes 键值 让系统知道你的应用程序应该在适当的时候被唤醒 2、在 - (void)applicationDidEnterBackground:(UIApplication *)application  切入后台执行的方法中执行下面代码 [[UIApplication sharedApplication]setKeepAliveTimeout:600 handler:^{ //执行的代码 ...
  #define degreesToRadians(x) (M_PI * x / 180.0) - (void)viewWillAppear:(BOOL)animated { [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight]; CGRect newBounds = CGRectMake(0, 0, 480, 320); self.navigationController.view.bounds = new ...
1、中国各主要大城市经纬度数据:北京市市中心经纬度:(116.41667,   39.91667)上海市区经纬度:(121.43333,   34.50000)天津市区经纬度:(117.20000,   39.13333)香港经纬度:(114.10000,   22.20000)广州经纬度:(113.23333,   23.16667)珠海经纬度:(113.51667,   22.30000)
将自己的类封成库供别人调用,非常方便,就行xcode中的许多类库一样。那么如何制作自己的类库呢? 本人在网上看过很多童鞋的文章,都没有试成功,最后在同事的帮助下搞定。今天有点空闲时间,赶紧记下来,一是跟大家分享,二是怕忘了,今天有同事问我,都感觉有点生了,所以有了这篇文章。   下面教大家一步步制作framework     1、         新建一个项目选择Framwork&Library中的Cocoa Touch Static Library。如图  
VMware Workstation unrecoverable error: (vmx)Exception 0xc0000006 (disk error while paging) has occurred.A log file is available in "F:\vmware\RHEL5.4-RHCE-Server\vmware.log".  A core file is available in "F:\vmware\RHEL5.4-RHCE-Server\vmware-vmx-3148.dmp".  Please request support ...
  UISwipeGestureRecognizer *recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeLeft:)]; [recognizer setDirection:(UISwipeGestureRecognizerDirectionLeft)]; [self.t ...
UIToolbar* tools = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, 150, 45)]; [tools setTintColor:[self.navigationController.navigationBar tintColor]]; [tools setAlpha:[self.navigationController.navigationBar alpha]]; NSMutableArray* buttons = [[NSMutableArray alloc] initWithCapacity:2]; ...
1. 判断设备的类型ipad或者iphone,可在main中定义一个宏来记录。    #define IS_IPAD  ([[UIDevice currentDevice] respondsToSelector:@selector(userInterfaceIdiom)] &&[[UIDevice currentDevice] userInterfaceIdion] == UIUserInterfaceIdiomPad) 2. 调用自带应用    调用Email     [[UIApplication sharedApplication] openURL:[NSURL U ...
#import <Foundation/Foundation.h> #import <sys/utsname.h> enum { MODEL_IPHONE_SIMULATOR, MODEL_IPOD_TOUCH, MODEL_IPHONE, MODEL_IPHONE_3G, MODEL_IPAD }; @interface DeviceDetection : NSObject + (uint) detectDevice; + (NSString *) returnDeviceName:(B ...
NSURL url= [NSURL URLWithString:@"tel:+12125551212"]; NSString *osVersion = [[UIDevice currentDevice] systemVersion]; if ([osVersion floatValue] >= 3.1) { UIWebView *webview = [[UIWebView alloc] initWithFrame:[UIScreen mainScreen].applicationFrame]; ...
[[[[[self tabBarController] tabBar] items] objectAtIndex:tabIndex] setBadgeValue:badgeValueString];  
Global site tag (gtag.js) - Google Analytics