1 #import "NJViewController.h" 2 3 @interface NJViewController () 4 @property (weak, nonatomic) IBOutlet UIImageView *iconView; 5 6 @end 7 8 @impl...
分类:
移动开发 时间:
2016-01-23 22:59:22
阅读次数:
249
FirstViewController的代码import UIKitclass FirstViewController: UIViewController, SecondViewControllerDelegate { @IBOutlet weak var showTextLabel: UIL...
分类:
编程语言 时间:
2016-01-22 02:54:02
阅读次数:
182
首先我们要布局一下,使用sizeclass来布局:连线过来:
@property (weak, nonatomic) IBOutlet UIButton *bird;
@property (strong, nonatomic) IBOutletCollection(UIImageView) NSArray *ices;对于冰块的连线,因为我们这里的冰块有4块,所以我们直接连的是一个数组
懒加载一个U...
分类:
其他好文 时间:
2016-01-19 10:40:53
阅读次数:
153
#import "ViewController.h"#import @interface ViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@end@implementation ViewCont...
分类:
其他好文 时间:
2016-01-18 22:49:03
阅读次数:
230
小文件下载NSURLConnection-delegate实现,可以监听到下载的进度,但是还是无法解决内存飙升的问题,所以仅限小文件下载 1 @interface ViewController () 2 @property (weak, nonatomic) IBOutlet UIProgressV...
分类:
移动开发 时间:
2016-01-17 12:07:09
阅读次数:
249
对iOS开发基础-九宫格坐标(3)的代码进行进一步优化。 新建一个UIView的子类,并命名为WJQAppView,将appxib.xib中的UIView对象与新建的视图类进行关联。 WJQAppView类中声明3个IBOutlet属性,与appxib.xib中的视图对象包含的UIImage...
分类:
移动开发 时间:
2016-01-13 21:42:46
阅读次数:
217
这个问题纠结了我挺长时间的。一直以为把约束直接添加到动画里面就可以了。但是并没那么简单。-.-其实还是挺简class ViewController: UIViewController { @IBOutlet weak var usernameOutlet: UITextField! @I...
分类:
编程语言 时间:
2016-01-11 14:00:29
阅读次数:
170
BowenCollectionViewCell.xib 1 #import 2 3 @interface BowenCollectionViewCell : UICollectionViewCell 4 5 @property (weak, nonatomic) IBOutlet U...
分类:
移动开发 时间:
2016-01-06 17:23:36
阅读次数:
911
不知道大家有没有遇到要设置某些字体的颜色和大小等属性的设置,下面就让我们一起走进字体的变形王国吧!!!1.在storyboard中拖一个控件label,拖线设置属性为:@property (weak, nonatomic) IBOutlet UILabel *EasyLabel;2.在viewDid...
分类:
其他好文 时间:
2016-01-06 15:27:12
阅读次数:
136
一.NSThread线程间通信#import "ViewController.h"@interface ViewController ()@property (strong, nonatomic) IBOutlet UIScrollView *scrollView;@property (weak, ...
分类:
编程语言 时间:
2016-01-05 22:14:49
阅读次数:
530