Linux System Account SSH Weak Password Detection Automatic By System API
创建block匿名函数之前一般需要对self进行weak化,否则造成循环引用无法释放controller: __weak MyController *weakSelf = self 或者__weak __typeof(self) weakSelf = self; 执行block方法体的时候也可以转换...
分类:
其他好文 时间:
2015-10-14 10:29:44
阅读次数:
105
1.常见代理方法UIScrollView常见代理方法,放大缩小实例讲解实现。 1 #import "ViewController.h" 2 3 @interface ViewController () 4 @property (weak, nonatomic) IBOutlet UIScrollV....
分类:
其他好文 时间:
2015-10-14 01:37:20
阅读次数:
204
自定义UI的基本结构.h文件@protocol TRIPHotelXXXViewDelegate - (void)actionA;@end@interface TRIPHotelXXXView : UIView@property (nonatomic,weak) id delegate;+ (in....
分类:
其他好文 时间:
2015-10-12 21:04:03
阅读次数:
224
一、动态内存与智能指针 1、new:在动态内存中为对象分配空间并返回一个指向该对象的指针;delete:接受一个动态对象的指针,销毁该对象,并释放与之关联的内存 2、两种指针:shared_ptr和unique_ptr;还有一个weak_ptr;都定义在memory中 二、shared_ptr类:智...
分类:
其他好文 时间:
2015-10-11 19:38:46
阅读次数:
232
注意:如果勾选了Use Size Classes,上图中用于登录的Segue的push就得换成show。#import "LXViewController.h"@interface LXViewController ()@property (weak, nonatomic) IBOutlet UIT...
分类:
其他好文 时间:
2015-10-10 17:01:03
阅读次数:
201
NSURLSession *session = [NSURLSession sharedSession]; __weak id safeSelf = self; NSURLSessionDataTask *task = [session dataTaskWithRequest:req c...
分类:
移动开发 时间:
2015-10-10 12:17:03
阅读次数:
283
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UITextField *name;@property (weak, nonatomic) IBOutlet UITe...
分类:
其他好文 时间:
2015-10-10 06:45:47
阅读次数:
213
#import?"ViewController.h"
@interface?ViewController?()?<UITextFieldDelegate>
@property?(weak,?nonatomic)?IBOutlet?UITextField?*usernameTextfield;
@property?(weak,?nonatomic)?IBOutlet?...
分类:
移动开发 时间:
2015-10-09 12:28:13
阅读次数:
190
1. 智能指针(如标准库的auto_ptr,shared_ptr,weak_ptr,boost的scoped_ptr等)主要用于动态内存的管理,同时提供给用户与内置指针一样的使用方法,本条款主要涉及智能指针在构造与析构,复制和赋值,解引等方面的注意点,而非智能指针的实现细节.2. 智能指针的构造,赋...
分类:
编程语言 时间:
2015-10-06 23:38:32
阅读次数:
391