上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: // 集合类型 // swift 提供 Arrays , Sets 和 Dictionaries 三种基本的集合类型用来存储数据 , 数组(Arrays) 是有序数据的集, 集合(Sets)是无序无重复数据的集, 字典(Dictionaries) 是无序的键值对的集 // swift 语言中的 Ar 阅读全文
posted @ 2017-05-22 11:45 Dingzhijie 阅读(147) 评论(0) 推荐(0) 编辑
摘要: // 字符串 和 字符 // 字符串 是有序的 Character (字符) 类型的值的集合, 通过 String 类型的集合 // swift 的 String 和 Character 类型提供了快速和兼容 Unicode 的方式供你的代码使用, 创建和操作字符串的语法与C语言中的字符串相似, 轻 阅读全文
posted @ 2017-05-22 11:44 Dingzhijie 阅读(326) 评论(0) 推荐(0) 编辑
摘要: // 运算符是检查,改变,合并值的特殊符号或短语, // swift 支持大部分标准的 C语言的运算符, 且改进许多特性来减少常规编码错误. /* 如: 赋值符 (=) 不返回值, 以防止把想要判断相等运算符 (==) 的地方写成 赋值符 导致的错误. 算数运算符 (+, -, * , / , %) 阅读全文
posted @ 2017-05-22 11:43 Dingzhijie 阅读(957) 评论(0) 推荐(0) 编辑
摘要: class NamedShape{ var numberOfSides: Int = 0 var name: String init(name: String) { self.name = name } func simpleDecription() -> String { return "A sh 阅读全文
posted @ 2017-05-22 11:42 Dingzhijie 阅读(172) 评论(0) 推荐(0) 编辑
摘要: print("世界,你好") var myVariable = 42 myVariable = 50 let myConstant = 42 let implicitinteger = 70 let fffffff = 70.0 let exnfjenb: Double = 80 let chang 阅读全文
posted @ 2017-05-22 11:41 Dingzhijie 阅读(145) 评论(0) 推荐(0) 编辑
摘要: UIDatePicker *datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0, 20, 200, 30)]; datePicker.datePickerMode = UIDatePickerModeDate;//模式选择 NS 阅读全文
posted @ 2017-03-22 16:44 Dingzhijie 阅读(5536) 评论(0) 推荐(0) 编辑
摘要: UIButton *back = [UIButton buttonWithType:UIButtonTypeCustom]; back.titleLabel.font = [UIFont boldSystemFontOfSize:13]; [back setTitle:@"Back" forStat 阅读全文
posted @ 2017-03-22 16:43 Dingzhijie 阅读(2655) 评论(0) 推荐(0) 编辑
摘要: if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 4.0) { } 阅读全文
posted @ 2017-03-22 16:43 Dingzhijie 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 1.将 View controller-based status bar appearance 删除(默认为 YES),或设置为YES 2.设置rootViewcontroller,如果为viewController,那么重写下面的方法 如果rootviewcontroller为navgationC 阅读全文
posted @ 2017-03-22 16:41 Dingzhijie 阅读(1025) 评论(0) 推荐(1) 编辑
摘要: NSDictionary *attribute = @{NSFontAttributeName: [UIFont systemFontOfSize:17]};CGSize size = [_cards[1][i] boundingRectWithSize:CGSizeMake(1000, 40) o 阅读全文
posted @ 2017-03-22 16:37 Dingzhijie 阅读(907) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页