- 博客(32)
- 收藏
- 关注
转载 SAP Solution key
'''''''''''''''''''''''''''''''''''''' ' Solution Manager Key Generator ' 'Save to SolManKeyGen.vbs and execute' ' ' ''''''''''''''''''''''''''''''''''''
2014-03-06 13:18:20
819
原创 导入opensource sqlcipher.xcodeproj错误解决
Undefined symbols for architecture i386: "_SecRandomCopyBytes", referenced from: _sqlcipher_cc_random in libsqlcipher.a(sqlite3.o) "_kSecRandomDefault", referenced from: _s
2014-02-06 16:49:50
1753
转载 Using SQLCipher to encrypt sqlite db (for iOS)
1. Follow the steps in http://sqlcipher.net/ios-tutorial/ Hints: * DELETE existing sqlite3.* from your source code tree if you were using sqlite code earlier (very likely). SqlCipher is
2013-08-04 10:09:31
1903
转载 制作静态库 第三方SDK
转自:http://qk13warcraft.blog.163.com/blog/static/1575493442012740342940/ IOS 程序是由Objective-c语言构成,而是Objective-c语言中每一个类又分成 .h .m 文件。静态库可以将这些程序的类封装成一个.a文件,第三方应用程序只需要拿到这个.a文件和代码对应的.h文件即可使用静态库中封装的方法。总的来说
2013-06-29 09:10:25
3524
转载 [iOS] XCode实用快捷键
转自:http://hi.baidu.com/marktian/item/ed4329a441721fdf5bf191f0关闭窗口 command+w左缩进 command+[右缩进 command+]项目中查找 command+shift+F查找下一个 command+g查找上一个 command+shift+g用选择的查找 c
2013-06-28 20:40:39
536
转载 SQLite指南(5) - PRAGMA命令用法(完整)
如若转载,请加上本文链接,以示尊重个人劳动,谢谢。 http://iihero.iteye.com/blog/1189633PRAGMA语句是SQLITE数据的SQL扩展,是它独有的特性,主要用于修改SQLITE库或者内数据查询的操作。它采用与SELECT、INSERT等语句一样的形式来发出请求,但也有几个重要的不同:1. 特定的PRAGMA语句可能被移走,新的PRAGMA语句
2013-06-28 11:30:59
9534
转载 时区日期处理及定时 (NSDate,NSCalendar,NSTimer,NSTimeZone) -- IOS(实例)
时区日期处理及定时 (NSDate,NSCalendar,NSTimer,NSTimeZone) -- IOS(实例) NSDate存储的是世界标准时(UTC),输出时需要根据时区转换为本地时间 Dates NSDate类提供了创建date,比较date以及计算两个date之间间隔的功能。Date对象是不可改变的。 如
2013-06-03 21:08:05
924
转载 nsdate的使用
// 当前时间创建NSDate NSDate *myDate = [NSDate date]; NSLog(@"myDate = %@",myDate); //从现在开始的24小时 NSTimeInterval secondsPerDay = 24*60*60; NSDate *t
2013-06-03 20:14:06
606
转载 iOS耳机侦听事件
- (void)viewDidLoad{ //添加耳机拔掉侦听事件 AudioSessionInitialize(NULL, NULL, NULL, NULL); AudioSessionAddPropertyListener(kAudioSessionProperty_AudioRouteChange, audioRouteCha
2013-06-03 16:21:54
1902
转载 SQL 两表关联 查询出A表中有但是B表中没有的数据
SQL 两表关联 查询出A表中有但是B表中没有的数据 |字号 订阅方法1select * from a where id + name not in (select id + name from b)方法2select a.* from a left join b on (a.id=b.id and a.name=b.name) where i
2013-05-28 00:13:02
19931
转载 Opening multiple databases with SQLite
@interface database : NSObject { sqlite3 * db; sqlite3_stmt * query; NSString *queryString; NSString *dbPath;}- (void) opendb;- (BOOL)attach_user_databases;@end
2013-05-18 13:42:16
837
转载 动态调整UITableViewCell高度的实现方法
有时我们需要动态调整UITableViewCell的高度,根据内容的不同设置不同的高度,以前看到一种实现方法,写得有点麻烦,具体地址找不到了,这里有个更好的(至少我认为),分享一下部分代码。2012.03.11更新:一年后回来审视儿时的代码,发现heightForRowAtIndexPath那个实现方法确实不太好,会dequeue掉一个可以reuse的cell导致经常都要新创建cell,会
2013-03-26 23:46:54
611
转载 ios学习笔记之Object-C—字符串
PS:自己根据每段学习阶段的学习情况写的笔记,都是基本的内容,可能会有错误,仅供参考!在Object-c中,字符串的声明是:NSString *aString; aString并不真正包含一个字符串对象—它是指向内存中字符串对象的指针。(和C语言中,用指针指向字符串的声明类似);字符串声明,以下三种方法:NSString *a0 = [[
2013-02-16 16:03:55
967
转载 IOS基础:Objective-C 字符串处理
//一、NSString/*----------------创建字符串的方法----------------*/ //1、创建常量字符串。NSString *astring = @"This is a String!";//2、创建空字符串,给予赋值。NSString *astring = [[NSString alloc] init];astring = @"Th
2013-02-14 22:47:31
397
转载 IOS简单的字串替换方法stringByTrimmingCharactersInSet
1 NSString *str = @"一个 (ABC) #@!#^#G@#Dd21e12d!E@!212s012yhsn 汉0932字#@!中..文//>?输~~~@#$#@%#^#^%&^*&(*)入"; 2 NSMutableCharacterSet *set = [[NSMutableCharacterSet alloc] init]; 3 [set formUnion
2013-02-13 21:48:43
838
转载 objective-c:读取和写入plist文件,代码在Mac和iPhone中均适用。
//写入plist文件:NSMutableDictionary* dict = [ [ NSMutableDictionary alloc ] initWithContentsOfFile:@"/Sample.plist" ];[ dict setObject:@"Yes" forKey:@"RestartSpringBoard" ];[ dict writeToFile:@"/Sam
2013-02-13 20:50:34
3229
转载 objective c判断中英文混合的字符长度的两种方法
得到中英文混合字符串长度 方法1- (int)convertToInt:(NSString*)strtemp{ int strlength = 0; char* p = (char*)[strtemp cStringUsingEncoding:NSUnicodeStringEncoding]; for (int i=0 ; i<[strtemp lengthOfByt
2013-02-13 20:41:23
4728
转载 bj-c中字符串和数字互相转化
在obj-c中,字符串使用NSString定义成一个用于保存字符串的对象变量,而数字则使用原始类型float、int定义成一个变量,这是一个原生态的变量。这两种变量之间在开发时会需要相互转化。下面是常用的转化方法:NSString *tempA = @"123";NSString *tempB = @"456";1、字符串拼接 NSString *new
2013-02-13 12:32:56
580
转载 objective-c ASCII NSString转换
// NSString to ASCIINSString *string = @"A";int asciiCode = [string characterAtIndex:0]; // 65// ASCII to NSStringint asciiCode = 65;NSString *string = [NSString stringWithFormat:@"%c", asciiCod
2013-02-12 14:24:04
1534
转载 ios学习--TableView详细解释
-、建立 UITableViewDataTable = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 420)];[DataTable setDelegate:self];[DataTable setDataSource:self];[self.view addSubview:DataTable];
2013-02-11 21:20:50
471
转载 presentModalViewController和dismissModalViewControllerAnimated的使用总结
在实际开发中,如果要弹出视图:我们常用到presentModalViewController方法和dismissModalViewControllerAnimated方法。presentModalViewController:弹出视图dismissModalViewControllerAnimated:隐藏视图贴代码:弹出视图:
2013-02-06 22:23:12
597
转载 IOS文件路径处理方法:
+ (NSString *)pathWithComponentsNSArray *)components根据components中的元素来构建路径.- (NSArray *)pathComponents解析路径,返回构成路径的各个部分.- (NSString *)lastPathComponent提取路径中的最后一个组成部分- (NSString *)pathExten
2013-01-19 12:00:23
1018
转载 ios目录
//获取根目录 NSString*homePath = NSHomeDirectory(); NSLog(@"Home目录:%@",homePath); //获取Documents文件夹目录,第一个参数是说明获取Doucments文件夹目录,第二个参数说明是在当前应用沙盒中获取,所有应用沙盒目录组成一个数组结构的数据存放
2013-01-16 22:48:02
517
原创 Undefined symbols for architecture i386:
Undefined symbols for architecture i386: "_OBJC_CLASS_$_CATiledLayer", referenced from: objc-class-ref in TiledPDFView.old: symbol(s) not found for architecture i386clang: error: linker
2013-01-13 20:18:45
689
转载 SAP GUI for Java PlatinGUI720MacOSX
下载SAP GUI for Java PlatinGUI720MacOSX_8-10006059.zip安装安装完毕配置配置照着SAP帮助文档做的,结果想得太复杂,弄了半天,其实很简单,就一行代码就搞定了。Open SAP GUI On the Mac top-menu bar, click on “SAPGUI”, then “Preferences”:GUI on Ma
2013-01-12 13:31:35
2782
原创 Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
ProcessPCH++ "/Users/xxxx/Library/Developer/Xcode/DerivedData/English_Reader-alybxowggrudboejoylghzohavko/Build/Intermediates/PrecompiledHeaders/English Reader-Prefix-fldqdedtnerfrubpymgklsjvzccz/Engl
2013-01-10 20:35:10
64877
转载 xcode4.5 各种不能运行在真机上(转)
转自:http://www.cnblogs.com/yaoliang11/archive/2012/11/27/2790705.html自从xocde升级到4.5又换了台新mac之后,xcode就一直不能运行在真机上,在网上搜索了2天,终于全部解决了。用两部iphone4测试,一部是ios5另外一部是ios6,一开始,两部机器都运行不了xcode,一直提示的错误是:“Choos
2012-12-31 17:56:30
1039
原创 IOS导入导出文件设置
在Info.plist中,添加键Application supports iTunes file sharing,并设为YES.
2012-12-31 16:01:40
880
原创 warning: no rule to process file '$(PROJECT_DIR)/MyWebView/HighlightedString
Xcode提示错误如下:warning: no rule to process file '$(PROJECT_DIR)/MyWebView/HighlightedStringwarning: no rule to process file '$(PROJECT_DIR)方法是在"Build Phases"->"Compile Sources"中去掉“.h"文件
2012-12-28 22:14:22
1961
转载 How To Mark Or Get The Highlighted String Inside UIWebView
Before we go over with this tutorial, I would like to thank everyone for reading my posts, for asking questions and for giving suggestions. Because of that, I will continue writing tutorials that migh
2012-12-28 00:44:42
2416
原创 IOS ARC代码转成非ARC
Build Settings->Apple LLVM compiler 4.1 - Language->Objectiv-C Automatic Reference Counting设置成No
2012-12-20 00:15:21
664
转载 设置NSZombieEnabled和MallocStackLogging
转自http://www.cnblogs.com/xiaodao/archive/2012/02/14/2350635.html在XCode,4以上版本中,设置NSZombieEnabled和MallocStackLogging1.点击XCode的Product菜单,选择Edit Scheme...选项2.选择左侧的Run...,右边点击Argument
2012-11-30 22:55:41
437
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人