2016年1月12日

ios购物车的实现

摘要: #import static NSString * const keyProductId = @"productId";//商品IDstatic NSString * const keyProductPrice = @"productPrice";//商品价格static NSString * c... 阅读全文

posted @ 2016-01-12 10:59 涨姿势大叔 阅读(2926) 评论(0) 推荐(0) 编辑

ios去时间戳

摘要: #define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]) 阅读全文

posted @ 2016-01-12 09:05 涨姿势大叔 阅读(105) 评论(0) 推荐(0) 编辑

2016年1月11日

数组排序

摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { NSArray *arr=@[@{@"name":@"Tim Cook",@"age":@"24",@"sex":@"female",@... 阅读全文

posted @ 2016-01-11 16:20 涨姿势大叔 阅读(278) 评论(0) 推荐(0) 编辑

ios数组字典混合运用

摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { //数组 NSArray *arr=@[@"1",@"2",@"3",@"4"]; //数组中有数组 ... 阅读全文

posted @ 2016-01-11 10:26 涨姿势大叔 阅读(1082) 评论(0) 推荐(0) 编辑

2016年1月10日

中文数组排序

摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { /* 第1题 请将如下数据存储成字典,并将字典内容以字符串形式输出,输出:"XXX,年龄XXX岁,科目XXX,分数XXX"(将XXX替换为相... 阅读全文

posted @ 2016-01-10 15:24 涨姿势大叔 阅读(154) 评论(0) 推荐(0) 编辑

ios数组面试题

摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { /* 第1题 字符串中的world替换为i bookan wisdom */ NSString *str1=@"hello wo... 阅读全文

posted @ 2016-01-10 14:08 涨姿势大叔 阅读(190) 评论(0) 推荐(0) 编辑

object-c所有知识点集合

摘要: //// main.m// OC所有知识点集合//// Created by apple on 15/11/24.// Copyright © 2015年 apple. All rights reserved.//#import int main(int argc, const char * arg... 阅读全文

posted @ 2016-01-10 11:09 涨姿势大叔 阅读(247) 评论(0) 推荐(0) 编辑

2016年1月9日

ios字符串截取/数据存入数组

摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool {//1.对字符串“2015-09-01 08:19:10”操作,输出"08:19:10"。要求使用两种截取方式。 //第一个 ... 阅读全文

posted @ 2016-01-09 13:24 涨姿势大叔 阅读(856) 评论(0) 推荐(0) 编辑

ios字典用字符串输出

摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { /** * 第1题 请将如下数据存储成字典,并将字典内容以字符串形式输出,输出:"XXX,年龄XXX岁,职业XXX"(将XX... 阅读全文

posted @ 2016-01-09 12:33 涨姿势大叔 阅读(319) 评论(0) 推荐(0) 编辑

ios身份证key字典排序

摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { //1.以下是身份证号,输出身份证人的性别,年龄 NSString *idCard=@"210423198809040... 阅读全文

posted @ 2016-01-09 12:05 涨姿势大叔 阅读(385) 评论(0) 推荐(0) 编辑

导航