- 博客(22)
- 资源 (1)
- 问答 (1)
- 收藏
- 关注
原创 iOS读取CSV文件
-(void)readCSVData{ NSString *path = [[NSBundle mainBundle] pathForResource:@"values" ofType:@"csv"]; NSString *fileContents = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEnco
2015-11-26 09:18:29
3733
原创 NSArray按字母顺序排序
NSArray* unsortedArray = [[NSArray alloc] initWithObjects:@"DAFDA",@"EWRWE",@"VCXVX",@"HSHXC", @"ONSWXC",@"WETCS",@"ACXDS", nil]; NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc]
2015-11-26 09:13:37
1164
原创 NSString和NSDate相互转化
//目标格式:yyyy-MM-dd NSString *dateStr = @"2015-9-15"; NSLog(@"initial dateStr:%@",dateStr); NSDateFormatter *inputFormatter = [[NSDateFormatter alloc] init]; [inputFormatter setDateForma
2015-11-26 09:03:44
909
原创 iOS判断字符串是否为浮点数或整数
//判断字符串是否为浮点数- (BOOL)isPureFloat:(NSString*)string{ NSScanner* scan = [NSScanner scannerWithString:string]; float val; return[scan scanFloat:&val] && [scan isAtEnd];}//判断是否为整形:- (BOOL)
2015-11-26 08:54:54
3913
翻译 Understanding Workflow(From SalesForce)
What is Workflow?Workflow automates the following types of actions based on your organization's processes:Tasks—Assign a new task to a user, role, or record owner.Email Alerts—Send an email to o
2015-03-30 13:02:21
771
转载 NSNotificationCenter 的详细说明
1. 定义一个方法 -(void) update{ } 2. 对象注册,并关连消息 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(update) name:@"update" object:nil] 3. 在要发出通知
2014-11-19 03:16:21
483
原创 对象复制copy与mutableCopy方法的区别
NSObject类提供类copy和MutableCopy方法,通过这两个方法即可复制已有对象的副本。copy与
2014-08-28 21:14:52
831
原创 日历(NSCalendar)与日期组建(NSDateComponents)
之前介绍了NSDate的功能和用法,以及NSDate与NSString之间的相互转换,假设you
2014-08-27 00:12:01
3366
原创 Objective-C中的日期格式器NSDateFormatter
NSDateFormatter代表一个日期格式器,它的功能就是完成NSDate与NSString之间的转换。
2014-08-26 23:28:01
2126
原创 Objective-C中NSString与NSMutableString的一些简单应用
在Objective-C中,处理字符串的类主要有NSString和NSMutableString。
2014-08-26 00:41:35
579
转载 错误:ORA-28002: the password will expire within 7 days 解决方法
今天在使用sqlplus时出现===============================================ERROR:ORA-28002: the password will expire within 7 days===============================================提示密码快过期了,由于需要连接的测试
2014-04-13 20:56:18
801
原创 如何添加jar包,以及如何查看jar包源代码
Java有很多开源的jar包,在使用开源jar包的时候,首先要下载,这个大家都会,接下来就要导入jar包到工程,这个可能有些小白不知道,很多时候,我们还希望能够查看jar包源文件,这个估计就不是所有人都知道了。1. 添加jar包选中项目根目录,右击选择Properties(或者快捷键 Alt+Enter),接下来按照下图步骤点击:然后选择你要添加的jar包即
2014-03-19 21:14:17
2422
原创 Life Insurance 2
11. Sometimes Policy Reserves are also referred as:(select one or more)a.Legal Reservesb. Monetary Reserves 通货准备金c.Statutory Reservesd. None of the listed options 12. PST, the policyholder
2013-11-10 22:45:00
3039
原创 Life Insurance
11. Sometimes Policy Reserves are also referred as:(select one or more)a. Legal Reservesb. Monetary Reservesc. Statutory Reservesd. None of the listed options 12. PST, the policyholder of
2013-11-08 00:06:16
1566
原创 iOS 使用sqlite3 建表,删除表,添加记录, 查询记录
1.打开数据库NSString *DBPath = @"/Users/administrator/Movies/LanGu.sqlite3"; sqlite3 *database = NULL; char *errMsg; //1 创建或打开数据库 if(sqlite3_open([DBPathUTF8String],
2012-11-15 11:51:01
3972
转载 iOS开发:小技巧积累
转自:http://www.cocoachina.com/newbie/tutorial/2012/1016/4928.html1、获取全局的Delegate对象,这样我们可以调用这个对象里的方法和变量:[(MyAppDelegate*)[[UIApplication sharedApplication] delegate] MyMethodOrMyVariable];2、
2012-10-16 22:18:02
439
原创 如何使用Hpple解析HTML,以及获取网站上的所有超链接
关于怎么配置就不说了,具体可以参考:http://lwxshow.com/ios-iphone-development-teaches-you-how-to-use-the-objective-c-parsing-html-lwxshow-com主要代码如下: // 1 NSURL *tutorialsUrl = [NSURLURLWithString:@"
2012-10-13 09:00:57
1390
转载 iOS中使用Core Plot绘制统计图入门
iOS(iPhone/iPad) 下图形组件有两个有名的,s7graphview 和 Core Plot,它们都是在 Google 上托管的代码,听说 Core Plot 比较强,因为前者仅支持曲线图,后者呢曲线图、饼图、柱状图等通吃,且较活跃。那就专注下 Core Plot 的使用。它提供了 Mac OS X 和 iOS 下的组件库,我只用到它的 iOS 图表库。Core Plot
2012-09-25 14:55:17
818
Learning Cocos 2D.pdf
2012-08-14
NSString转NSDate的问题求助
2015-08-23
TA创建的收藏夹 TA关注的收藏夹
TA关注的人