自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 actionSheet和从相册选取图片

UIActionSheet:弹出提示框UIActionSheet *actionSheet=[[UIActionSheet alloc]initWithTitle:@"图片" delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:@"从相册选取" otherButtonTitles:@"第一项",@"第二项", nil]; a

2015-12-27 16:01:30 401

原创 tableView简化写法

#import "MyTableViewController.h"@interface MyTableViewController ()@property(nonatomic,retain)NSMutableArray *arr;@end@implementation MyTableViewController- (void)viewDidLoad { [super viewDidLoad

2015-12-27 15:57:45 195

原创 tabbarController

在AppDelegate.m中写#import "AppDelegate.h"#import "RootViewController.h"#import "SecondViewController.h"#import "ThirdViewController.h"#import "FouthViewController.h"#import "FifthViewController.h"#

2015-12-27 15:52:58 184

原创 Block

传值,只能从后往前传,需要三部..RootViewController.m 准备工作 先写用来实现功能的blockvoid(^newBlock)(NSString *)=^(NSString *str){ NSLog(@"%@",str); };1.要把block的遥控器从前往后通过属性进行传值,SecondViewController.h定义一个属性接受@property

2015-12-27 15:49:24 229

原创 tableView联动(省市区)

#import "RootViewController.h"#define WIDTH self.view.frame.size.width#define HEIGHT self.view.frame.size.height@interface RootViewController ()<UITableViewDataSource,UITableViewDelegate>@property(non

2015-12-27 15:37:45 470

原创 tableView下移,拉大图片

1.下移 //第一种 UIImageView *imageView=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 100, 200)]; imageView.image=[UIImage imageNamed:@"c4.jpg"]; //给tableView添加头视图,一般在头视图上放轮播图等 self.tableView

2015-12-27 15:35:13 377

原创 TableView编辑

准备工作 1.Student.h#import <Foundation/Foundation.h>@interface Student : NSObject@property(nonatomic,copy)NSString *name;@property(nonatomic,copy)NSString *phone;@property(nonatomic,copy)NSString *add

2015-12-27 15:31:49 398

原创 model传值

1.Student.h#import <Foundation/Foundation.h>@interface Student : NSObject@property(nonatomic,copy)NSString *name;@property(nonatomic,copy)NSString *hobby;@property(nonatomic,copy)NSString *address;@

2015-12-27 15:15:08 527

原创 TableView界面传值和TableViewCell使用

初始化-(id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNilP{ self=[super initWithNibName:nibNameOrNil bundle:nibBundleOrNilP]; if (self) { self.arr=[NSMutableArr

2015-12-27 14:58:21 3104 1

原创 文章标题

UITableView 自带滑动效果 创建方法和UIView相同创建UITableView *tableView=[[UITableView alloc] initWithFrame:self.view.frame style:UITableViewStylePlain]; tableView.backgroundColor=[UIColor yellowColor]; [sel

2015-12-27 14:38:28 205

原创 文章标题

界面传值<协议六步>准备工作#import "AppDelegate.h"#import "RootViewController.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptio

2015-12-27 14:23:13 224

原创 UINavigationController(导航控制器)

UINavigationController(导航控制器) 界面可以滑动,多用于做轮播图 //修改导航视图控制器的半透明效果,默认是YES self.navigationController.navigationBar.translucent=NO; //修改背景颜色 self.navigationController.navigationBar.barTintColor=

2015-12-27 14:07:51 213

原创 UIPageControl

UIPageControl 给图片添加可以动的点AppDelegate.m#import "AppDelegate.h"#import "RootViewController.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application did

2015-12-20 15:08:24 284

原创 UIScrollView

UIScrollView UIScrollView可以让屏幕滚动AppDelegate.m#import "AppDelegate.h"#import "RootViewController.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)applica

2015-12-20 14:53:56 291

原创 控件:滑块,加减键

控件:滑块,加减键1.音量加减键UIStepper UIStepper *stepper=[[UIStepper alloc] initWithFrame:CGRectMake(100, 200, 100, 40)]; stepper.backgroundColor=[UIColor yellowColor]; stepper.tintColor=[UIColor redColor]

2015-12-20 14:38:49 605

原创 手势

手势控制图片,对其进行放大,缩小,旋转等操作代码块-(void)viewDidLoad{ // 1.先创建一个图片,要对其进行操作 self.view.backgroundColor=[UIColor whiteColor]; self.imageView=[[UIImageView alloc] initWithFrame:CGRectMake(100, 100, 200,

2015-12-20 14:17:02 337

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除