- 博客(10)
- 资源 (2)
- 问答 (73)
- 收藏
- 关注
原创 swift学习笔记8 类与结构
类与结构 Unlike other programming languages, Swift does not require you to create separate interface and implementation files for custom classes and structures. In Swift, you define a class or a structur
2017-04-18 13:43:48 601
原创 swift学习笔记7 枚举
枚举枚举语法 You introduce enumerations with the enum keyword and place their entire definition within a pair of braces:枚举用enum关键字开始,后面加上大括号括起来的枚举定义: enum SomeEnumeration { // 枚举的定义 }举个例子
2017-04-18 13:43:20 370
原创 swift学习笔记6 闭包
闭包 Closures are self-contained blocks of functionality that can be passed around and used in your code. Closures in Swift are similar to blocks in C and Objective-C and to lambdas in other programmin
2017-04-18 13:42:50 462
原创 swift学习笔记5 函数
注:英文部分来自官方文档 Every function in Swift has a type, consisting of the function’s parameter types and return type. You can use this type like any other type in Swift, which makes it easy to pass function
2017-04-18 13:42:23 503
原创 swift学习笔记4 控制流
注:英文部分来自官方文档switchfallthrough In contrast with switch statements in C and Objective-C, switch statements in Swift do not fall through the bottom of each case and into the next one by default. Instea
2017-04-18 13:41:55 394
原创 swift学习笔记3 集合类型
注:英文部分来自官方文档 It is good practice to create immutable collections in all cases where the collection does not need to change. Doing so makes it easier for you to reason about your code and enables the
2017-04-18 13:41:08 262
原创 swift学习笔记2 字符串
注:英文部分来自官方文档字符串字符串可变性 You indicate whether a particular String can be modified (or mutated) by assigning it to a variable (in which case it can be modified), or to a constant (in which case it canno
2017-04-18 13:40:04 290
原创 swift学习笔记1 操作符
注:英文部分来自官方文档基础操作符赋值操作符 If the right side of the assignment is a tuple with multiple values, its elements can be decomposed into multiple constants or variables at once: 如果赋值的左边是一个包含多个值的tuple,它的元素可
2017-04-18 13:39:15 252
原创 swift学习笔记0
开始学swift,随便记录一下。(英文部分摘自官方文档)1 optionals 可选 You use optionals in situations where a value may be absent. An optional represents two possibilities: Either there is a value, and you can unwrap the optio
2017-04-18 13:37:39 192
遇到bad_access错误该怎么定位代码?开启了zoombie object
2015-08-26
用AFNetworking上传图片报Request failed: 未找到 (404)错
2015-08-24
app一打开就闪退是什么问题?
2015-08-23
高德地图逆地理编码结果没有数据,是什么问题?
2015-08-20
使用UIImagePickerController出现内存泄漏的问题
2015-08-20
app打包成ipa文件之后,高德地图默认定位到了非洲那边是怎么回事?
2015-08-14
判断用户是否存在时遇到了问题
2015-08-05
扫描完二维码之后该怎么进行相应的操作?
2015-07-29
高德地图自定义标注的气泡时,不能响应单击事件吗?
2015-07-28
ios远程控制电脑该怎么实现?
2015-06-29
用nsurlconnection上传图片出错,求助
2015-06-17
使用nsurlsesseionuploadtask上传图片发生错误
2015-06-15
用nsurlsessionuploadtask上传图片失败,求教
2015-06-09
AFNetworking怎么设置上传进度条?
2015-06-05
如何在连接网络时弹出活动指示器?
2015-06-03
两个long long类型的数(非零)相除,为什么结果为0?
2015-06-03
为什么我的app的源码很大?
2015-05-21
越狱的iphone怎么安装测试版的app?
2015-05-15
怎么跳转到网页支付?
2016-06-07
使用CAKeyframeAnimation导致导航栏的pop动画卡顿
2016-03-18
自定义uitableviewcell的imageview无法显示的问题
2015-12-27
使用微信支付的时候,一定要商户服务器先调用【统一下单API】生成预付单吗?
2015-11-26
调用支付宝支付的时候,总是显示系统繁忙,怎么破?
2015-11-25
子类代理与父类的代理冲突的问题
2015-10-26
ios中怎么定义数组常量?
2015-10-19
高德导航功能的起始点怎么和定位的位置不一致?
2015-10-12
uitableview的style为grouped的时候,这么把它上面的那一部份去掉?
2015-09-30
没有预编译文件prefix.pch的情况下怎么在发布版中去除NSLog?
2015-09-30
app被拒绝了,怎么办?
2015-09-28
用ios自带的定位功能,怎么定位到香港去了?我在内地
2015-09-19
关于程序健壮性的问题
2015-09-18
dealloc是在什么时候被调用?
2015-09-16
pop一个视图控制器后内存没有完全释放?
2015-09-16
为什么把视图控制器pop掉之后,内存并没有释放?
2015-09-16
遇到了一个奇怪的问题
2015-09-09
AFNetworking上传图片,服务器接收不到
2015-09-08
TA创建的收藏夹 TA关注的收藏夹
TA关注的人