#import "RootViewController.h"
#import "RootView.h"
@interface RootViewController ()
@property(nonatomic,retain)RootView *myview;
@end
@implementation RootViewController
- (id)initWithNibName:(NSSt...
分类:
移动开发 时间:
2014-11-04 22:44:59
阅读次数:
312
ViewController.h中定义按钮 btn1;
@property (weak,
nonatomic) IBOutlet
UIButton *btn1;
ViewController.m中实现按下按钮跳转到:qqqViewController;
- (IBAction)btn1:(i...
分类:
移动开发 时间:
2014-11-04 19:48:45
阅读次数:
196
一、前言
ios开发中,@property的修饰就有很多的修饰词,如retain、assign、strong、weak、nonatomic等等,而这些修饰词在ARC模式下与非ARC模式下也是略有不同。下面先简单说说ARC模式
二、什么是ARC
ARC是iOS 5推出的新功能,全称为Automatic Reference Counting。一句话说,...
分类:
移动开发 时间:
2014-11-04 19:47:10
阅读次数:
262
@property (weak, nonatomic) IBOutlet UITextField *Text1;@property (weak, nonatomic) IBOutlet UITextField *Text2;@property (weak, nonatomic) IBOutlet U...
分类:
其他好文 时间:
2014-11-04 16:35:21
阅读次数:
255
一、实现效果 二、实现代码1.数据模型部分TXFriendGroup.h文件 1 #import 2 3 @interface TXFriendGroup : NSObject 4 @property (nonatomic, copy) NSString *name; 5 /** 6 ...
分类:
移动开发 时间:
2014-11-02 17:49:24
阅读次数:
124
?@property(nonatomic) CGPoint contentOffset; ?这个属性用来表示UIScrollView滚动的位置? ?@property(nonatomic) CGSize contentSize;? ?这个属性用来表示UIScrollView内容的尺寸,滚动范围(能滚多远) ...
分类:
其他好文 时间:
2014-10-30 22:51:14
阅读次数:
276
MainViewController.h
@interface RootViewController : UIViewController
@property(nonatomic, retain)NSDictionary *dic;
@property(nonatomic, retain)NSArray *allKeys;
MainViewController.m
- (void)view...
分类:
其他好文 时间:
2014-10-30 11:52:11
阅读次数:
188
RootViewController.h
@interface RootViewController : UIViewController {
BOOL Close[15]; //用于存放每一组的收起展开状态 YES 是收起 NO是展开
UITableView *_tableView;
}
@property(nonatomic, retain)NSArray *da...
分类:
其他好文 时间:
2014-10-30 11:50:52
阅读次数:
113
设置带有导航栏的根视图控制器
RootViewController.h
@interface RootViewController : UIViewController
{
UITableView *_tableView;
}
@property(nonatomic, retain)NSArray *data; //存放原本的数据
@property(nonatomic, reta...
分类:
其他好文 时间:
2014-10-30 11:50:28
阅读次数:
182
细数AutoLayout以来UIView和UIViewController新增的相关API – UIViewController篇UILayoutSupport@property(nonatomic,readonly,retain)idtopLayoutGuideNS_AVAILABLE_IOS(7...