实现的效果如下所示:代码如下:ViewController.h#import @interface ViewController : UIViewController@property (weak, nonatomic) IBOutlet UIPickerView *cityPickView;- (...
分类:
其他好文 时间:
2015-09-24 19:20:18
阅读次数:
143
苹果官方文档,用的是Swift https://developer.apple.com/library/ios/documentation/Contacts/Reference/Contacts_Framework/index.html#//apple_ref/doc/uid/TP40015328这...
分类:
移动开发 时间:
2015-09-23 20:49:29
阅读次数:
232
按现有的button之后自己主动创造一个新的button,并为新button加入事件,因此,当您单击弹出提示框。于viewcontroller.h添加@property (weak, nonatomic) IBOutletUIButton *addbutton;为这个按钮加入响应事件addbutto...
分类:
移动开发 时间:
2015-09-23 19:07:52
阅读次数:
179
和reference的实现思路略有不同1. 在spring对接这一层略有区别ServiceBean不再是一个bean factory,而是ApplicationListener的实现2. service在配置时,是引用spring现有的bean id也就是说业务service的实例的构建过程是由sp...
分类:
其他好文 时间:
2015-09-23 16:44:16
阅读次数:
232
http://www.geeksforgeeks.org/references-in-c/When a variable is declared as reference, it becomes an alternative name for an existing variable. A vari...
分类:
编程语言 时间:
2015-09-22 18:43:05
阅读次数:
236
在ObjectiveC里,用@property访问所有的实例变量。@property有一对属性:strong 和 weak。官方文档里的解释晦涩难懂;Stack Overflow里的用户RDC (http://stackoverflow.com/users/1371853/rdc) 给出了形象的解释...
分类:
其他好文 时间:
2015-09-22 16:45:00
阅读次数:
180
值得学习的地方:在reference这一侧是如何做到了对应用透明? 分析代码后不难发现:使用javassist的字节码技术+代理。 这种实现框架对应用透明的手段,在struts2的action上也有类似手段,actionproxy加反射,struts2的action也是一个普通的bean类就可以充当...
分类:
其他好文 时间:
2015-09-22 16:43:34
阅读次数:
143
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UITextField *nameTextField;@property (weak, nonatomic) IBOu...
分类:
其他好文 时间:
2015-09-22 16:23:48
阅读次数:
155
Caffe编译问题及解决方案汇总:在编译caffe代码时,之前的各种错误会显现出来,这时候会出现各种各样的问题:问题1:Error: 'make all' 'make test'.build_release/lib/libcaffe.so: undefined reference to cv::im...
分类:
系统相关 时间:
2015-09-22 12:52:24
阅读次数:
224
当类中有指针成员时,一般有两种方式来管理指针成员:一是采用值型的方式管理,每个类对象都保留一份指针指向的对象的拷贝;另一种更优雅的方式是使用智能指针,从而实现指针指向的对象的共享。智能指针(smart pointer)的一种通用实现技术是使用引用计数(reference count)。引用计数跟踪该...
分类:
其他好文 时间:
2015-09-22 07:45:09
阅读次数:
157