摘要:Search bar delegate- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar{ UITextField *searchBarTextField = nil; for (UIView *mainview i...
        
阅读全文
 
            
         
        
            
            
摘要:1.CUICatalog: Invalid asset name supplied: , or invalid scale factor: 2.000000=》原因:You are calling[UIImage imageNamed:@""]or[UIImage imageNamed:nil].N...
        
阅读全文
 
            
         
        
            
            
摘要:这两天需要发布一个ipa放到网上供其他人安装,需要用到企业级开发者账号。在网上查了一下资料,感觉没有一个比较完善的流程,于是决定把整个流程写下来,供大家参考。首先详细说明一下我们的目标,我们需要发布一个ipa放到网上,所有人(包括越狱及非越狱设备)可以直接通过链接下载安装,不需要通过AppStore...
        
阅读全文
 
            
         
        
            
            
摘要:标签:划动删除iphone滑动删除iosUITableView原创作品,允许转载,转载时请务必以超链接形式标明文章原始出处、作者信息和本声明。否则将追究法律责任。http://rainbird.blog.51cto.com/211214/634587从七八月前对苹果一无所知,到现在手持iphone,...
        
阅读全文
 
            
         
        
            
            
摘要:如何用JSONKit读写JSON文件分类:ios2013-04-20 12:46510人阅读评论(0)收藏举报JSON文件格式简单,使用方便,值得一用。目前已经有多个库支持Json文件的解析,在这之中,JSONkit用起来方便,而且效率比较高,本文介绍的就是JSONKit的使用方法。1、准备工作下载...
        
阅读全文
 
            
         
        
            
            
摘要:转:http://esoftmobile.com/2014/01/14/build-ios6-ios7-apps/前言前段时间,苹果在它的开发者网站上放出了iOS系统安装比例,其中iOS7占到78%,iOS6占18%,剩余4%是iOS6以下版本。我们也借此机会将手上正在进行的两个项目都升级到支持iO...
        
阅读全文
 
            
         
        
            
            
摘要:1 // 2 // ViewController.m 3 // MapDemo 4 // 5 // Created by Chocolate. on 14-4-25. 6 // Copyright (c) 2014年 redasen. All rights reserved. 7 // 8...
        
阅读全文
 
            
         
        
            
            
摘要:1 #import "ViewController.h" 2 3 @interface ViewController () 4 @property (strong, nonatomic) NSMutableData *data; 5 @end 6 7 @implementation ViewC...
        
阅读全文
 
            
         
        
            
            
摘要:打开模拟器沙盒目录下面看看模拟器的沙盒文件夹在mac电脑上的什么位置。文件都在个人用户名文件夹下的一个隐藏文件夹里,中文叫资源库,他的目录其实是Library。2.1 方法1、可以设置显示隐藏文件,然后在Finder下直接打开。设置查看隐藏文件的方法如下:打开终端,输入命名显示Mac隐藏文件的命令:...
        
阅读全文
 
            
         
        
            
            
摘要://// AppDelegate.m// test//// Created by Chocolate. on 14-4-16.// Copyright (c) 2014年 redasen. All rights reserved.//#import "AppDelegate.h"@imple...
        
阅读全文
 
            
         
        
            
            
摘要:时间2013-08-20 12:49:20GoWhich原文http://www.gowhich.com/blog/view/id/343苹果官方 Crash文件分析方法 (iOS系统Crash文件分析方法)symbolicatecrash路径:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash对于提交的苹果
        
阅读全文
 
            
         
        
            
            
摘要:转自raywenderlich作为一名应用开发者,你是否有过如下经历?为确保你的应用正确无误,在将其提交到应用商店之前,你必定进行了大量的测试工作。它在你的设备上也运行得很好,但是,上了应用商店后,还是有用户抱怨会闪退 !如果你跟我一样是个完美主义者,你肯定想将应用做到尽善尽美。于是你打开代码准备修复闪退的问题……但是,从何处着手呢?这时iOS崩溃日志派上用场了。在大多数情况下,你能从中了解到关于闪退的详尽、有用的信息。通过本教程,你将学习到一些常见的崩溃日志案例,以及如何从开发设备和iTunes Connect上获取崩溃日志文件。你还将学习到符号化( symbolication),从日志追踪
        
阅读全文
 
            
         
        
            
            
摘要:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ //在退出应用,接收到推送通知,会走这里//判断是否是接收远程通知推送 if(launchOptions==0) { } else { NSDictionary *userInfo = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey]; //推送消息内容//...
        
阅读全文
 
            
         
        
            
            
摘要:UITextField *textField = [[UITextField alloc]initWithFrame:CGRectMake(10, 50, 320, 50)]; textField.placeholder = @"填写订单"; if ([textField respondsToSelector:@selector(setAttributedPlaceholder:)]) { UIColor *color = [UIColor redColor]; textField.attributedPlaceholder = [[NSAttribut...
        
阅读全文
 
            
         
        
            
            
摘要:UITapGestureRecognizer *tap3 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(onSecondNavClick:)]; [field3 addGestureRecognizer:tap3]; tap3.delegate = self;-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:...
        
阅读全文
 
            
         
        
            
            
摘要:调用一次计时器方法:[cpp]view plaincopymyTimer=[NSTimerscheduledTimerWithTimeInterval:1.5target:selfselector:@selector(scrollTimer)userInfo:nilrepeats:NO];//不重复,只调用一次。timer运行一次就会自动停止运行重复调用计时器方法:[cpp]view plaincopytimer=[NSTimerscheduledTimerWithTimeInterval:1.0target:selfselector:@selector(function:)userInfo:
        
阅读全文
 
            
         
        
            
            
摘要:-(BOOL)date:(NSDate*)date isBetweenDate:(NSDate*)beginDate andDate:(NSDate*)endDate{ if ([date compare:beginDate] == NSOrderedAscending) return NO; if ([date compare:endDate] == NSOrderedDescending) return NO; return YES;}
        
阅读全文
 
            
         
        
            
            
摘要://// AppDelegate.m// ClockTest//// Created by Chocolate. on 14-3-26.// Copyright (c) 2014年 redasen. All rights reserved.//#import "AppDelegate.h"@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ //一种方式 U
        
阅读全文
 
            
         
        
            
            
摘要:文题算是解决了,把特殊字符替换一下:-(NSString *)JSONString:(NSString *)aString {NSMutableString *s = [NSMutableString stringWithString:aString];//[s replaceOccurrencesOfString:@"\"" withString:@"\\\"" options:NSCaseInsensitiveSearch range:NSMakeRange(0, [s length])];//[s replaceOccurren
        
阅读全文
 
            
         
        
            
            
摘要:1 - (void)viewDidLoad 2 { 3 [super viewDidLoad]; 4 [self.view setBackgroundColor:[UIColor grayColor]]; 5 // Do any additional setup after loading the view, typically from a nib. 6 MarqueeLabel *label = [[MarqueeLabel alloc]initWithFrame:CGRectMake(0, 0, 100, 20)]; 7 label.backgr...
        
阅读全文