--------------- ViewController.m ---------------#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIButton *h...
分类:
其他好文 时间:
2015-07-28 22:34:17
阅读次数:
106
ARC(automatic reference counting)机制判断是否是ARC机制ARC机制中不能使用retain release autorelease retainCount在dealloc方法中不能使用 [super dealloc];在ARC下对象释放的判断依据:对象没有强指针指向指...
分类:
其他好文 时间:
2015-07-28 22:34:03
阅读次数:
190
using UnityEngine;
namespace CompleteProject
{
public class GameOverManager : MonoBehaviour
{
public PlayerHealth playerHealth; // Reference to the player's health.
...
分类:
其他好文 时间:
2015-07-28 21:20:21
阅读次数:
96
reference: http://djangobook.py3k.cn/2.0/chapter01/chapter 1: modeles.py “模型”,和数据库相关 views.py 页面的业务逻辑,含有 视图函数 url.py 什么样的 URL 调用什么的视图 xxx.html html模板
分类:
其他好文 时间:
2015-07-28 20:53:36
阅读次数:
95
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIButton *head;- (IBAction)moveClick:(UIButton *) sender;- ...
分类:
其他好文 时间:
2015-07-28 20:43:06
阅读次数:
96
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIButton *head;- (IBAction)topClick;- (IBAction)bottomClick...
分类:
其他好文 时间:
2015-07-28 20:39:38
阅读次数:
102
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/BitmapData.htmlhttp://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf35...
分类:
其他好文 时间:
2015-07-28 20:18:36
阅读次数:
129
--------------- ViewController.m ---------------#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UITextField...
分类:
其他好文 时间:
2015-07-28 15:56:52
阅读次数:
120
上一篇讲了Block的简单实用,这一篇则是讲述Block的最经常也是比较简单的用法,个人认为这是block相对其他页面传值方式比较好的一个用处。也顺便总结下这两天对Block的理解的一些注意点。对于页面传值这种情况,我们一般在程序里有几种处理的方法。
1、设置Delegate
2、使用NotificationCenter
3、使用Block
4、KVO页面传值
5、NSUserDefault等文件存...
分类:
其他好文 时间:
2015-07-27 18:52:45
阅读次数:
112
Because INVOKESPECIAL will consume value created by NEW from the operand stack, but you may need to actually use this value, so the reference is dupli...
分类:
编程语言 时间:
2015-07-27 13:01:43
阅读次数:
196