码迷,mamicode.com
首页 >  
搜索关键字:weak    ( 1256个结果
GCD(2)
```objc#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *action;@end@implementation ...
分类:其他好文   时间:2014-07-18 14:26:27    阅读次数:247
Lua中的weak表——weak table
弱表(weak table)是一个很有意思的东西,像C++/Java等语言是没有的。弱表的定义是:A weak table is a table whose elements are weak references,元素为弱引用的表就叫弱表。有弱引用那么也就有强引用,有引用那么也就有非引用。我们.....
分类:其他好文   时间:2014-07-17 14:10:51    阅读次数:231
简单计算器的设计
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UILabel *show;@end@implementation ViewController - (voi...
分类:其他好文   时间:2014-07-16 20:41:43    阅读次数:186
利用xcode6做出牛的一逼的计算器
1、利用xcode6控件搭成计算器界面2、程序#import "ViewController.h"@interface ViewController (){ float result; int i;}@property (weak, nonatomic) IBOutlet UILabel *lab....
分类:其他好文   时间:2014-07-16 20:31:06    阅读次数:334
What the difference between __weak and __block reference?
近日遇到一个很细的知识点,关于block的循环引用问题,相比很多人都遇到了,也能顺利解决了,至于block方面的技术文章,那就更多了,这里不再赘述,但是有这样一个问题: What the difference between __weak and __block reference?  使用场景: __block typeof(self) tmpSelf = self; [self meth...
分类:其他好文   时间:2014-07-16 17:09:11    阅读次数:203
初探boost之smart_ptr库学习笔记
概述   Boost.smart...
分类:其他好文   时间:2014-07-16 11:24:55    阅读次数:276
Session下载
#import "ViewController.h"@interface ViewController () @property (weak, nonatomic) IBOutlet UIImageView *imageView;@end/**// 下载进度跟进- (void)URLSession:...
分类:其他好文   时间:2014-07-14 14:53:15    阅读次数:271
简单计算器
#import "ViewController.h"#import "cal.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UILabel *calrusult; @end float i=10.0;@i...
分类:其他好文   时间:2014-07-14 09:40:03    阅读次数:282
Xcode ARC需要什么版本的环境支持
Mac OS X v10.6 和 v10.7 (64位应用) 的Xcode 4.2以上版本支持ARC,iOS 4 和 iOS 5 下ARC都能工作,但Weak不支持Mac OS X v10.6 和 iOS 4,所以要想在iOS 4下运行用ARC的程序,只能用strong。1)支持ARC的开发环境:M...
分类:其他好文   时间:2014-07-13 22:33:05    阅读次数:348
Demo_SWTableViewCell
功能实现:左右滑动TableViewCell,出现自定义视图实现原理:以自定义视图为Button为例,自定义TableViewCell,添加以下属性//ScrollviewtobeaddedtoUITableViewCell@property(nonatomic,weak)UIScrollView*cellScrollView;//Thecell‘sheight@property(nonatomic)CGFloatheight;..
分类:其他好文   时间:2014-07-13 14:22:40    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!