共 15 篇文章 |
|
-(void)payOrder:(NSString *)orderStr fromScheme:(NSString *)schemeStr callback:(CompletionBlock)completionBlock;方法原型:(void)payOrder:(NSString *)orderStr fromScheme:(NSString *)schemeStr callback:(CompletionBlock)completionBlock;(CompletionBlock)completionBlock.在新的SDK中已经用统一的工具类实现了ResultStatus到resu... 阅17789 转5 评0 公众公开 16-01-12 14:39 |
iOS集成支付宝_移动支付_移动开发。1>先与支付宝签约,获得商户ID(partner)和账号ID(seller)(这个主要是公司的负责) 2>下载相应的公钥私钥文件(加密签名用) 3>下载支付宝SDK(登录网站:http://club.alipay.com/)里面提供了非常详细的文档、如何签约、如何获得公钥私钥、如何调用支付接口 4>生成订单信息 5>调用支付宝客... 阅209 转0 评0 公众公开 15-12-24 19:25 |
NSString *subtitle;-(id) initWithCoordinate:(CLLocationCoordinate2D) coords{if (self = [super init]) {coordinate = coords;-(void)createAnnotationWithCoords:(CLLocationCoordinate2D) coords {CustomAnnotation *annotation = [[CustomAnnotation alloc] initWithCoordinate: coords];CLLocationCoordinate2D coords = CLLocationCoo... 阅56 转0 评0 公众公开 15-12-14 00:36 |
阅155 转0 评0 公众公开 15-12-13 23:14 |
阅136 转0 评0 公众公开 15-12-13 22:48 |
01字符和字符串-118:3202字符和字符串-215:5903字符和字符串-310:1804字符和字符串-407:40 04 Swift 集合。01流程控制-115:5102流程控制-214:3903流程控制-316:39 06 Swift 函数。01函数-110:1802函数-215:1803函数-316:32 07 闭包。01类和结构体-117:4402类和结构体-222:37 10 属性。01属性-113:2602属性-216:3203属性-317:31 11 方法。 阅58 转0 评0 公众公开 15-12-12 21:52 |
IOS网络图片缓存详解。比如某个应用要经常显示网络图片,就不能每次显示图片都去网络上下载,那太耗费时间也太耗费流量,这时就要对网络图片进行缓存了,以下是我对IOS网络图片缓存的一些见解,有不足之处,欢迎大家指出来,一起探讨。1、根据图片URL查找内存是否有这张图片,有则返回图片,没有则进入第二步。3、从网络上下载该图片,下载完后... 阅52 转0 评0 公众公开 15-12-12 10:59 |
class Movie: MediaItem { var director: String init(name: String, director: String) { self.director = director super.init(name: name) }}class Song: MediaItem { var artist: String init(name: String, artist: String) { self.artist = artist super.init(name: name) }}下面的示例定... 阅37 转1 评0 公众公开 15-12-12 10:58 |
iOS布局和屏幕适配的一点总结。曾经,iOS开发是不需要考虑屏幕适配问题的,因为只有一种屏幕尺寸。Objc代码 [thumbImageView mas_makeConstraints:^(MASConstraintMaker *make) { make.top.equalTo(@0); make.left.equalTo(@0); make.width.equalTo(self); make.height.equalTo(thumbImageView.mas_width).multipliedBy(0... 阅292 转0 评0 公众公开 15-12-12 10:54 |