在 Swift 中没有了 main.m,@UIApplicationMain 是程序入口 在 Swift 中只有 .swift 文件,没有 .h/.m 文件的区分 在 Swift 中,一个类就是用一对 {} 括起的,没有 @implementation 和 @end 在 Swift 中没有了 mai ...
分类:
编程语言 时间:
2017-02-12 10:45:35
阅读次数:
186
23 - QtPrintSupport - Qt PrintSupport module provides classes to make printing easier and portable QAbstractPrintDialog - Base implementation for prin ...
分类:
其他好文 时间:
2017-02-09 17:39:50
阅读次数:
298
https://lostechies.com/jimmybogard/2013/03/14/saga-implementation-patterns-controller/ 之前的文章中我们介绍了观察者模式。在这个模式里,saga在整个业务中是一个被动的参与者,和大多数快餐店完成订单流程类似。但是并 ...
分类:
其他好文 时间:
2017-02-05 20:32:35
阅读次数:
141
https://lostechies.com/jimmybogard/2013/03/11/saga-implementation-patterns-observer/ 侵删。 NServiceBus sagas 是一个Process Manager pattern的实现,在实现的时候经常使用它的一 ...
分类:
其他好文 时间:
2017-02-05 20:26:49
阅读次数:
809
A.Alyona and copybooks Problems: 给你一个数n和代价分别为a, b, c、数量不限的1, 2, 3,求将n凑成4的倍数的最小代价 Analysis: cj:取个模随便凑一凑就好 Tags: Implementation 1 #define PRON "pa" 2 #i ...
分类:
其他好文 时间:
2017-01-25 14:16:42
阅读次数:
294
Context,中文直译为“上下文”,SDK中对其说明如下: Interface to global information about an application environment. This is an abstract class whose implementation is pro ...
分类:
移动开发 时间:
2017-01-16 15:17:51
阅读次数:
253
#import "CZSearchBar.h" @implementation CZSearchBar - (instancetype)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { self.font ...
分类:
其他好文 时间:
2017-01-09 23:31:04
阅读次数:
189
三大基石之一 封装 1.什么是封装? 封装(encapsulation)又叫隐藏实现(Hiding the implementation)。就是只公开代码单元的对外接口,而隐藏其具体实现。 比如你的手机,手机的键盘,屏幕,听筒等,就是其对外接口。你只需要知道如何按键就可以使用手机,而不需要了解手机内 ...
分类:
其他好文 时间:
2017-01-09 10:52:19
阅读次数:
201
封装 1.什么是封装 封装(encapsulation)又叫隐藏实现(Hiding the implementation)。就是只公开代码单元的对外接口,而隐藏其具体实现。 其实生活中处处都是封装,手机,电脑,电视这些都是封装。你只需要知道如何去操作他们,并不需要知道他们里面是怎么构造的,怎么实现这 ...
分类:
其他好文 时间:
2016-12-29 13:23:34
阅读次数:
118
此篇博客最后更新时间写自2016.5.18。当下高德地图jar版本为3.3.1。 使用高德地图碰到此问题,纠结许久(接近4个多小时)。 记录在此,希望遇到相同问题的读者可以有所借鉴。 错误截图: 导致问题的原因主要有两种: 1、so文件操作不当问题。可能是so文件与jar不匹配,也可能是so文件未导 ...
分类:
移动开发 时间:
2016-12-27 00:25:36
阅读次数:
561