- 博客(72)
- 资源 (17)
- 收藏
- 关注
原创 删除.svn隐藏文件
MAC系统下,.svn文件是隐藏的。如果项目是非export导出的,那么项目中会有很多的.svn文件。如果项目的体积非常庞大,我们如何快速的批量删除.svn文件呢?下面是操作方法:打开终端,cd ...命令进入到.svn所在的文件夹。输入:find . -type d -name ".svn"|xargs rm -rf回车,这样.svn文
2015-05-07 14:23:35
1352
转载 git使用教程
我的git笔记 原创01 November 2014号外号外:专注于移动端的fullPage.js来啦!!!快点我查看转眼间加入git的阵营已经快两年了,结识git,缘起github,2年前在寻找代码托管网站,当时还是用svn,起初使用google code,可是google的服务虽好,在天朝你懂得,后来发现了github,多亏了蒋鑫老师的《GotGitHub》将我
2015-04-01 15:18:16
721
原创 iOS截图
UIGraphicsBeginImageContext(__webView.frame.size); [__webView.layerrenderInContext:UIGraphicsGetCurrentContext()]; UIImage *image =UIGraphicsGetImageFromCurrentImageContext(); UIGra
2015-03-27 10:11:30
492
原创 SearchBar使用设置的一些属性
//设置searchBar Placeholder的字体颜色// [[UILabel appearanceWhenContainedIn:[_searchBar class], nil] setTextColor:[UIColor grayTextColor]]; // Get the instance of the UITextField of the s
2015-03-10 10:53:08
1817
原创 iOS 设置webView cookie
+(void)setCookie{ NSMutableDictionary *cookieProperties = [NSMutableDictionarydictionary]; [cookieProperties setObject:@"2050-01-01"forKey:NSHTTPCookieExpires]; [cookieProperties se
2015-01-21 11:24:52
2058
原创 iOS webView 隐藏div
- (void)webViewDidFinishLoad:(UIWebView *)webView{ // [webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('s-topBanner').style.display=\"none\";document.getElementById(
2015-01-21 11:24:20
1588
转载 iOS中修改WebView默认的User Agent
iOS中修改WebView默认的User Agent2014-05-28 | 评论今天遇到一个需求,因某些原因,需要在webview默认的user agent中增加一些自定义的东西。经测试发现,webview的-webView:shouldStartLoadWithRequest:navigationType:方法中修改request的UA或者重新load修改UA过的NSMut
2015-01-21 10:04:53
2951
原创 gitHub好的资源链接
1、https://github.com/examplecode/unused-image 清除项目中未使用的资源图片,包括android和iO
2014-11-25 15:27:50
739
原创 iOS正则表达式
NSPredicate *predicate = [NSPredicatepredicateWithFormat:@"isSelected == YES"]; NSMutableArray *tempArray = [NSMutableArrayarrayWithArray:m_recommendDataArray]; [tempArray filterUsingPre
2014-10-27 14:19:17
365
原创 Xcode 遇到有些库文件被修改,之类的错误。
/Users/用户目录/Library/Developer/Xcode/DerivedData/ModuleCache/3OQQ9G3BB8KEO/清空,然后clean一下项目。
2014-10-10 10:59:35
534
原创 制作.a静态库文件
制作通用的静态库文件1.先创建 Cocoa Touch Static Library.2.将功能类导入项目中.3.编译出 Debug-iphoneos 以及 Debug-iphonesimulator 的.a文件及.h文件.4.打开terminal,输入 lipo -create -output 所需存放的路径/保存的文件名.a 真机编译出的绝对路径/静态库文件名.
2014-08-06 10:04:40
680
原创 iOS 数组中的string 按照字典排序
NSArray * array = [NSArrayarrayWithArray:keyArray]; SEL sel = @selector(compare:); array = [array sortedArrayUsingSelector:sel];
2014-07-24 18:12:51
659
原创 修改ios7状态栏字体颜色
[[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleLightContent];
2014-06-24 22:10:11
583
转载 Swift
http://onevcat.com/2014/06/walk-in-swift/http://weibo.com/p/1001603720039017670032
2014-06-11 09:40:58
521
原创 截取某张图片的一部分
+(UIImage*)getImageWith:(UIImage*)image _rect:(CGRect)rect{ UIImageView *__imageview = [[UIImageViewalloc]initWithFrame:CGRectMake(0,0, 320,__gScreenHeight+20)]; __imageview.image = im
2014-05-16 15:03:10
1391
转载 代码面试最常用的10大算法
发表于2014-04-10 11:34| 1249次阅读| 来源ProgramCreek| 107 条评论| 作者X WangJava面试算法排序二叉树归并排序职业生涯摘要:面试也是一门学问,在面试之前做好充分的准备则是成功的必须条件,而程序员在代码面试时,常会遇到编写算法的相关问题,比如排序、二叉树遍历等等。在程序员的职业生涯中,算法亦算是一门基础课程,尤其是在面
2014-04-11 13:04:42
544
原创 iOS 动画
[UIView beginAnimations:nil context:nil]; [UIView setAnimationBeginsFromCurrentState:YES]; [UIView setAnimationDuration:.35]; self.__titleLabel.frame =CGRectMake(44.0f,-64.0f,23
2014-04-11 11:06:32
432
原创 设置UITableView刷新某一行的代码
NSIndexPath * indexPath = [NSIndexPathindexPathForRow:row inSection:section]; [groupTableViewreloadRowsAtIndexPaths:@[indexPath]withRowAnimation:UITableViewRowAnimationFade];
2014-03-28 09:14:00
541
原创 手把手学iOSPush推送
http://www.cocoachina.com/applenews/devnews/2013/0321/5862.html
2014-03-20 20:58:05
475
原创 iOS Push通知资料.
http://blog.csdn.net/think12/article/details/8863411 // IOS Push 证书的重新生成本文着重讨论如何合成证书1.将aps_developer_identity.cer转换成pemopenssl x509 -in aps_developer_identity.cer -inform d
2014-03-20 13:15:33
610
转载 手痒Xcode升级到5.1了
手痒Xcode升级到5.1了,apple默认让所有app都通过64位编译器编译。通过下面的方式可以关闭: 选中Targets—>Build Settings—>Architectures。双击Architectures,选择other,删除$(ARCH_STANDARD)(点’-’),然后增加armv7和armv7s(点‘+’)。clean一下再编译就行了。
2014-03-14 09:38:12
697
转载 ios7 uitableview group模式顶部有个空白
ios7 uitableview group模式顶部有个空白 2013-12-24 16:31:38| 分类: iphone|举报|字号 订阅uitableview在ios7下有很多改变,在group模式下,第一个section的顶部会有些空白解决办法是self.registerTable.tableHeaderView = [[UIView
2014-03-13 16:20:45
1448
原创 [UIDeviceRGBColor copyWithZone:]: unrecognized selector sent to instance
[UIDeviceRGBColor copyWithZone:]: unrecognized selector sent to instance分类: iOS2013-12-19 14:05 97人阅读 评论(0) 收藏 举报ios5下 UIColor copy会crash,用retainios6和ios7不会
2014-03-11 13:04:54
1349
转载 实习生的代码
最近接手一个项目,项目之前估计是实习生做的,看到很多实习生经常会出现的问题,随手摘几个出来。不会使用间接例子一间接是一个很简单入门级的编程原则,但我发现很多实习生还是会犯这样的错误,比如下面的代码:if (!isFavorite) { self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc
2014-01-21 14:57:02
1657
原创 iOS调用电话短信网页功能
1、调用 自带mail[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://admin@hzlzh.com"]]; 2、调用 电话phone[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"
2014-01-18 09:52:07
618
原创 正则表达式,过滤
NSPredicate *predicate = [NSPredicatepredicateWithFormat:@"isSelected == YES"]; NSMutableArray *tempArray = [NSMutableArrayarrayWithArray:m_dataArray]; [tempArray filterUsingPredicate:pr
2014-01-16 10:12:26
745
原创 iOS7的UITableView分割线缩进
iOS7的UITableView默认有Separator Insets是15,如果不要分割线缩进,这边改0就OK了代码实现: if ([lotteryTable respondsToSelector:@selector(setSeparatorInset:)]) { lotteryTable.separatorInset = UIEdgeInsetsZero;
2014-01-16 10:07:40
2245
转载 iOS多线程
iOS多线程的实现方式有三种,1、NSThread。 2、NSOperation。 3、GCD。1、NSThread NSThread 调用方法一般如下几种。 1.1 [NSThread detachNewThreadSelector: toTarget: withObject:]; 1.2 NSThread * newThread = [[
2014-01-13 15:00:01
532
转载 实现iphone push notification
Push的原理:Push 的工作机制可以简单的概括为下图图中,Provider是指某个iPhone软件的Push服务器,这篇文章我将使用.net作为Provider。 APNS 是Apple Push Notification Service(Apple Push服务器)的缩写,是苹果的服务器。上图可以分为三个阶段。第一阶段:.net应用程序把要发送的消息、目的iPhone
2014-01-08 15:26:33
654
转载 iOS高级工程师面试题主要涉及cocoatouch
1.你使用过Objective-C的运行时编程(Runtime Programming)么?如果使用过,你用它做了什么?你还能记得你所使用的相关的头文件或者某些方法的名称吗? 2.你实现过多线程的Core Data么?NSPersistentStoreCoordinator,NSManagedObjectContext和NSManagedObject中的哪些需要在线程中创建或者传递?你是
2014-01-07 21:23:28
649
转载 ios开源项目
http://www.csdn.net/article/2013-06-04/2815530-GitHub-iOS-open-source-projects-one
2013-11-27 14:00:36
498
原创 自定义一个View用UIcontroller去调用的时候
NSArray *nib = [[NSBundle mainBundle]loadNibNamed:@"EETTodayViewCellFirstView" owner:self options:nil]; firestView=(EETTodayViewCellFirstView *)[nib objectAtIndex:0];
2013-11-15 10:28:40
677
php用于测试iospush通知推送的。
2014-03-20
UITableView左右滑动
2013-11-11
客户端服务端通信demo
2013-06-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人