自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 资源 (1)
  • 收藏
  • 关注

原创 archive 生成的ipa 比 bulid然后拖到itunes里生成的ipa要小7、8M

archive 生成的ipa 比 bulid然后拖到itunes里生成的ipa要小7、8M原因archive的 执行文件里是不包含调试信息的,Xcode先用release的执行文件生成了dSym文件,然后就把它删除了,接着又重新生了archive的执行文件可以用以下方法来验证GenerateDSYMFiledsymutil 目录 /App

2014-04-12 16:34:55 1178

转载 iOS:堆(heap)和栈(stack)的理解

iOS:堆(heap)和栈(stack)的理解操作系统iOS 中应用程序使用的计算机内存不是统一分配空间,运行代码使用的空间在三个不同的内存区域,分成三个段:“text segment “,“stack segment ”,“heap segment ”。Objective-C的对象在内存中是以堆的方式分配空间的,并且堆内存是由你释放的,即release栈由编译器管理自动释

2014-07-23 14:28:18 473

原创 使 UITableViewStylePlain Style 的TableView header 不浮动,像Group Style 那样固定,跟随Tableview 滚动,而不会停在顶端。

使 UITableViewStylePlain Style 的TableView header 不浮动,像Group Style 那样固定,跟随Tableview 滚动,而不会停在顶端。

2014-07-04 22:00:56 2501 1

转载 updating provisioning profiles

内容来自 xcode-users@lists.apple.comthe following steps seem to work:- Download the new Provisioning Profile from the web portal.- Quit Xcode.- Delete the bad profiles from "~/Library/MobileDe

2014-02-12 10:01:54 810

原创 iOS UserDefault tips2

NSUserDefaults *defaultUser = [NSUserDefaultsstandardUserDefaults];    [defaultUserregisterDefaults:dic];将指定字典中的内容来注册。 注册的内容 #不写入#磁盘,需要在 #应用程序启动时#调用此方法。可以将一个plist文件放在应用程序的资源目录中,

2014-02-10 09:45:47 558

原创 iOS UserDefault tips

#UserDefault tips##跟版本有关的变量存在UserDefault中要加版本号>例如,hasShowGuide //是否已经显示了引导页>,应该是hasShowGuide1_1_0这样的##添加的版本号应该用infoDictionary取得。>  注意在新的版本中是否要清理之前版本不用的变量>  ,还有变量的有效期问题,如果下版本无效,在使用时

2014-02-08 10:08:18 779

原创 使用结构体做为标识

像UIScrollView这样,效率要高点#UIScrollView.h```    struct {        unsigned scrollViewDidScroll : 1;        unsigned scrollViewWillBeginDragging : 1;        unsigned scrollViewDidEndDragging : 1;

2014-02-08 09:52:34 575

转载 NSDateFormatter

原文 http://blog.csdn.net/ddxuzengbin/article/details/12450955NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];初始化了一个NSDateFormatter变量后,对其调用setDateFormat方法,各种格式及运行结果如下:1

2013-10-31 22:26:11 585

转载 NSTimer与Run loop Modes

原文:http://www.winddisk.com/2012/06/29/nstimer_run_loop_modes/NSTimer与Run loop Modes一.NSRunLoop在Cocoa中,每个线程(NSThread)对象中内部都有一个run loop(NSRunLoop)对象用来循环处理输入事件,处理的事件包括两类,一是来自Input

2013-09-29 10:47:07 393

原创 deviceToken 转换

// Prepare the Device Token for Registration (remove spaces and )NSString *deviceToken = [[[[devTokendescription]   stringByReplacingOccurrencesOfString:@"withString:@""]   stringByReplaci

2013-09-26 16:24:26 994

转载 App Icons on iPad and iPhone

https://developer.apple.com/library/ios/qa/qa1686/_index.html

2013-09-26 14:27:27 634

转载 iOS中数字的格式化

原文:http://m.oschina.net/blog/95377iOS中数字的格式化在iOS中我们可以 通过NSDateFormatter来设置输出NSDate的格式。相比NSDateFormatter的大名鼎鼎,NSNumberFormatter 好像知道的人就不多了。其实通过NSNumberFormatter,同样可以设置NSNumber输出的格式。例如如下

2013-09-26 13:20:19 653

原创 NSMutableAttributedString 使用

NSMutableAttributedString *mut = [[NSMutableAttributedStringalloc] initWithAttributedString:attributedString];    [mut addAttribute:(NSString *)kCTFontAttributeName                       

2013-07-29 13:35:11 855

原创 libextobjc 优点

* **Simpler and safer key paths**, using EXTKeyPathCoding, which automatically checks key paths at compile-time.libextobjc (0.2.5)   A Cocoa library to extend the Objective-C programming language.   -

2013-07-03 13:17:26 4161

原创 Filter NSPredicate

////  main.m//  filterArray////  Created by yanguo.sun on 13-6-18.//  Copyright (c) 2013年 YEK. All rights reserved.//#import NSArray *filterArrayWith(NSString *searchText,NSArray *recipes);

2013-07-03 13:17:24 503

原创 Defining Shared Locations for Project Files

Defining Shared Locations for Project FilesThunder Download PluginThunder Download PluginDefine custom source trees—named locations for files that are outside the project folder. This is useful if you

2013-07-03 13:17:22 560

原创 Debug&Release Xcode

用Xcode 4.6.2创建项目,默认-DNS_BLOCK_ASSERTIONS=1也就是说,NSAssert()….在Release时是无效的。通过测试,也确实如此。但assert()在Release是有效的,需要如下: 也就是默认情况下,只需要在Preprocessor Macros 里添加NDEBUG就可以让assert(),在Release 时无效  当然也可以同时添加NS_

2013-07-03 13:17:19 697 1

原创 Xcode Run Script 笔记

Xcode Run Script 笔记1.自己写的,在编译完成后,打开product 所在文件夹test=${BUILD_DIR}"/"${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME}open ${test}2.添加test.xcconfig 并设置给DEBUG的Target欢迎一起讨论。。。。  3.echo svn info >svninfo.txtThun

2013-07-03 13:17:17 3867

翻译 Xcodebuild 命令行编译笔记

Xcodebuild 命令行编译笔记man Xcodebuild 获得帮助https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcodebuild.1.html1. Xcodebuild -version 查看当前编译用的xcode的

2013-07-02 11:28:46 1756

翻译 Event Kit使用说明

日历和提醒程序指导目录日历和提醒说明1.概括2.see also读写日历事件1.连接到事件库2.取得事件   a.用 Predicates   b.用 唯一标识符,Unique Identifiers;3.创建和编辑事件4.保存和删除事件5.执行一组操作。日历和提醒说明 Ev

2012-12-12 10:50:32 1177 1

iOS_Security_Oct12.pdf

iOS_Security_Oct12.pdf

2014-02-12

空空如也

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

TA关注的人

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