![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios
文章平均质量分 74
昔成
这个作者很懒,什么都没留下…
展开
-
IOS学习(八)滚动视图实现轮播
@interface RollingViewController ()@property(nonatomic, strong) UIScrollView *srcollview;@property(nonatomic, strong) UIPageControl *pageControl;@property(nonatomic, strong) NSTimer *timer;@proper原创 2016-11-29 00:20:11 · 472 阅读 · 0 评论 -
IOS学习(十三)UIScrollView下拉加载更多
//// FootView.h//#import //下拉时的状态typedef enum{ FootViewDragging,//开始拖拽 FootViewReadyLoading,//装备加载 FootViewEndDragging//松手}FootViewDragStatus;@interface FootView : UIView@prope原创 2016-12-07 21:58:11 · 1373 阅读 · 0 评论 -
IOS学习(六)导航视图控制器
Appdelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen]原创 2016-11-25 23:37:26 · 246 阅读 · 0 评论 -
IOS学习(十四)城市级联操作(两个tabview)
#import "MainViewController.h"@interface MainViewController ()@property(nonatomic, strong) UITableView *areaTabview;@property(nonatomic, strong) UITableView *subAreaTabview;@property(nonatomic,原创 2016-12-09 23:43:30 · 355 阅读 · 0 评论 -
IOS学习(十七)多视图管理
#import "MainViewController.h"#import "CustomTabBar.h"#import "OCViewController.h"#import "JAVAViewController.h"#import "PHPViewController.h"@interface MainViewController ()@property(nonatomic原创 2016-12-15 00:05:26 · 350 阅读 · 0 评论 -
IOS学习(二十)归档解档
// Person *person = [[Person alloc] init];// person.age = 16;// person.name = @"tom";// person.sex = @"male";// // [person description];// //原创 2016-12-21 22:40:05 · 270 阅读 · 0 评论 -
IOS学习(二十一)block简单使用
@interface Mother : NSObject@property(nonatomic, copy) void(^action)();-(void)goOutSide:(void(^)(int, int))action;@end#import "Mother.h"@implementation Mother//形参方式-(void)goOutSide:(void (原创 2016-12-22 22:21:42 · 262 阅读 · 0 评论 -
IOS学习(二十二)runloop与timer
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ //方式1 //自动加在runloop下,运行 //这种方式下,如果滑动动textview,timer会暂停,即run方法不会被执行 [NSTimer scheduledTimerWithTimeInterval:1.0 target:s原创 2016-12-24 22:36:42 · 307 阅读 · 0 评论 -
IOS学习(十八)简单slideMenu
#import "MainViewController.h"#import "FirstViewController.h"#import "SecondViewController.h"#import "MenuViewController.h"@interface MainViewController ()@property(nonatomic, strong) NSArray *原创 2016-12-20 16:30:39 · 564 阅读 · 0 评论 -
ios学习(十九)NSThread简单使用
#import "ViewController.h"@interface ViewController ()-(void)printMuch;@property (weak, nonatomic) IBOutlet UIImageView *picImg;@end@implementation ViewController- (IBAction)buttonClicked:(i原创 2016-12-20 22:44:55 · 233 阅读 · 0 评论 -
IOS学习(十六)自定义tabBar
#import "CustomTabBarItem.h"@implementation CustomTabBarItem+ (instancetype) itemWithFrame:(CGRect)frame title:(NSString *)title{ CustomTabBarItem *item = [CustomTabBarItem buttonWithType:UIBu原创 2016-12-13 23:09:54 · 257 阅读 · 0 评论 -
IOS学习(五)UIImageView
- (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor]; UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(30, 100, 200, 100)]原创 2016-11-24 23:22:27 · 203 阅读 · 0 评论 -
IOS学习(九)UITabView使用及几种常见的创建方式
1. 纯代码创建- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.view.backgroundColor = [UIColor grayColor]; //style:UITableViewStyleGr原创 2016-11-30 00:24:54 · 674 阅读 · 0 评论 -
IOS学习(十)UITabViewCell的创建方式
1. xlb方式//// CustomCellTableViewCell.h//#import @interface CustomCellTableViewCell : UITableViewCell@property (weak, nonatomic) IBOutlet UILabel *titleName;@property (weak, nonatomic) IBOut原创 2016-11-30 22:21:53 · 902 阅读 · 1 评论 -
IOS学习(十一)UITabViewCell的复用
//自定义必须重写该初始化方法- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ NSLog(@"init"); self = [super initWithStyle:style reuseIdentifi原创 2016-12-01 21:51:59 · 644 阅读 · 0 评论 -
ios学习(十五)微博布局
@interface MainViewController ()@property(nonatomic, strong) WBTabview *tableView;@property(nonatomic, strong) WBTableViewModel *tableModel;@end@implementation MainViewController- (void)viewDi原创 2016-12-12 22:30:28 · 339 阅读 · 0 评论 -
IOS学习(十二)plist 2 model操作
plist文件属性model类属性(属性名称必须要与plist中的保持一致)#import @interface Stutent : NSObject @property(nonatomic, copy) NSString *name; @property(nonatomic, copy) NSNumber *age; - (instance原创 2016-12-04 22:26:56 · 300 阅读 · 0 评论 -
IOS学习(一)视图创建
抛弃storyBoard,纯代码- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //大小与屏幕保持一致 self.window = [[UIWindow alloc] initWithFrame:原创 2016-11-23 21:15:59 · 208 阅读 · 0 评论 -
IOS学习(二)父子视图
-(void)viewDidLoad{ [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor]; UIView *view1 = [[UIView alloc] initWithFrame:CGRectMake(30, 30, 100, 100)]; v原创 2016-11-23 21:56:23 · 396 阅读 · 0 评论 -
IOS学习(三)UILabel
- (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor]; UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(100, 100, 100, 100)]; label原创 2016-11-23 23:18:20 · 200 阅读 · 0 评论 -
IOS学习(四)UIButton
- (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor]; //初始化时,同时设置样式 UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; but原创 2016-11-24 22:38:41 · 203 阅读 · 0 评论 -
IOS学习(七)UITabBarViewController标签视图控制器
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. [self setWindo原创 2016-11-27 23:27:11 · 283 阅读 · 0 评论