首页 文章 精选 留言 我的

精选列表

搜索[ios],共10000篇文章
优秀的个人博客,低调大师

[IOS]非常不错的导航控制器的应用Demo

我们在iPhone开发的过程中,估计UINavgationController是最最常用的控件之一吧,截下来我就用一个demo来举例导航控制器的应用。包含了tableview中增删查改的功能。 导航控制器的应用Demo 实现步骤: 1.创建一个Empty项目,命名为Navdemo。 2.创建一个根视图控制器,继承自UINavgationController,命名为FirstViewController。 FirstViewController.h: #import <UIKit/UIKit.h> @interface FirstViewController : UITableViewController @property(nonatomic,retain) NSMutableArray *array; @end FirstViewController.m: #import "FirstViewController.h" #import "DXWDiscosureButtonViewController.h" #import "DXWCheckViewController.h" @interface FirstViewController () @end @implementation FirstViewController static NSString *CellIdentifier = @"Cell"; - (id)initWithStyle:(UITableViewStyle)style { self = [super initWithStyle:style]; if (self) { self.array = @[[[DXWDiscosureButtonViewController alloc] initWithStyle:UITableViewStylePlain],[[DXWCheckViewController alloc] initWithStyle:UITableViewStylePlain]]; self.title = @"First"; } return self; } - (void)viewDidLoad { [super viewDidLoad]; //注册 [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"Cell"]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } #pragma mark - Table view data source - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { #warning Potentially incomplete method implementation. // Return the number of sections. return 1; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { #warning Incomplete method implementation. // Return the number of rows in the section. return [self.array count]; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { //[tableView registerClass:[SecondViewController class] forCellReuseIdentifier:@"aa"]; //这个多一个最后的一个参数,必须要有上面一行注册过的才能这样用,不然的话就去掉最后一个参数 //UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; //UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; //没有注册需要创建 // if (cell == nil) { // cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; // } int row = [indexPath row]; //当有多个view没有继承SecondVIewController的时候,可以这样写 //[((UITableViewController *)self.array[row] valueForKey:@"Title")]; cell.textLabel.text = ((DXWDiscosureButtonViewController *)self.array[row]).title; cell.imageView.image = ((DXWDiscosureButtonViewController *)self.array[row]).image; //有右边的>符号 cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; return cell; } #pragma mark - Table view delegate - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // DXWDiscosureButtonViewController *detailViewController = [[DXWDiscosureButtonViewController alloc] init]; //[detailViewController release]; int row = [indexPath row]; [self.navigationController pushViewController:self.array[row] animated:YES]; } @end 3.修改Delegate,设置根视图控制器 #import "DXWAppDelegate.h" #import "FirstViewController.h" //导入根视图控制器头文件 @implementation DXWAppDelegate - (void)dealloc { [_window release]; [super dealloc]; } - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; //创建首页 FirstViewController *first = [[FirstViewController alloc] initWithStyle:UITableViewStylePlain]; //创建一个导航栏,其中的首页是FirstViewController UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:first]; //将导航栏作为根视图控制器 self.window.rootViewController = nav; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKeyAndVisible]; return YES; } 4.创建所有子视图的一个基类控制器,命名为SecondViewController SecondViewController.h: #import <UIKit/UIKit.h> @interface SecondViewController : UITableViewController @property(nonatomic,retain)UIImage *image; @end SecondViewController.m: #import "SecondViewController.h" @interface SecondViewController () @end @implementation SecondViewController static NSString *cellRequestIdentifier = @"CellReuseIdentifier"; - (id)initWithStyle:(UITableViewStyle)style { self = [super initWithStyle:style]; if (self) { //self.title = @"SecondView"; } return self; } - (void)viewDidLoad { [super viewDidLoad]; //注册 [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:cellRequestIdentifier]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } #pragma mark - Table view data source - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { #warning Potentially incomplete method implementation. // Return the number of sections. return 1; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { #warning Incomplete method implementation. // Return the number of rows in the section. return 1; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; return cell; } #pragma mark - Table view delegate - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { } @end 5.创建二级子视图控制器,也就是上图所示的水果选项卡的内容控制器,命名为DXWDiscosureButtonController,继承自SecondViewController。 DXWDiscosureButtonController.h: #import "SecondViewController.h" @interface DXWDiscosureButtonViewController : SecondViewController @property(nonatomic,retain) NSMutableArray *array; @end DXWDiscosureButtonController.m: #import "DXWDiscosureButtonViewController.h" #import "ThirdViewController.h" @interface DXWDiscosureButtonViewController () @end @implementation DXWDiscosureButtonViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { self.image = [UIImage imageNamed:@"disclosureButtonControllerIcon"]; self.title = @"水果"; } return self; } - (void)viewDidLoad { [super viewDidLoad]; self.array = [[NSMutableArray alloc] initWithObjects:@"apple",@"orange",@"pitch",@"lenmon",@"balana", nil]; } -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return [self.array count]; } -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; } int row = [indexPath row]; cell.textLabel.text = [self.array objectAtIndex:row]; // cell.imageView.image = ((DXWDiscosureButtonViewController *)self.array[row]).image; //有右边的>符号 cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; return cell; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } -(void)dealloc { [self.array release]; [super dealloc]; } -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { int row = [indexPath row]; UIAlertView *a = [[UIAlertView alloc] initWithTitle:@"Title" message:[NSString stringWithFormat:@"你选择了%@",self.array[row]] delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil]; [a show]; } //右边的>符号响应事件 -(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { int row = [indexPath row]; // UIAlertView *a = [[UIAlertView alloc] initWithTitle:@"Title" message:[NSString stringWithFormat:@"你选择了%@",self.array[row]] delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil]; // [a show]; ThirdViewController *thirdViewController = [[ThirdViewController alloc] initWithNibName:@"ThirdViewController" bundle:nil]; thirdViewController.str = self.array[row]; [self.navigationController pushViewController:thirdViewController animated:YES]; [thirdViewController release]; } @end 6.创建第三级子视图控制器,也就是点击了某个水果选项卡的最右边的那个绿色按钮,会跳转到第三个视图,并且显示你所点击的水果名字,命名为ThirdViewController,继承自普通的ViewController,并且带有xib文件 ThirdViewController.h: #import <UIKit/UIKit.h> @interface ThirdViewController : UIViewController @property (retain, nonatomic) IBOutlet UILabel *lblshow; @property (nonatomic,copy) NSString *str; @end ThirdViewController.m: #import "ThirdViewController.h" @interface ThirdViewController () @end @implementation ThirdViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { self.title = @"ThirdViewController"; } return self; } - (void)viewDidLoad { [super viewDidLoad]; self.lblshow.text = self.str; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } - (void)dealloc { [_lblshow release]; [super dealloc]; } @end 7.创建根视图控制器的第二个选项卡的二级视图控制器,也就是选择的省市选项卡,命名为DXWCheckViewController,继承自tableViewController,不带xib文件 实现的效果是点击某行,这行显示mark DXWCheckViewController.h: #import "SecondViewController.h" @interface DXWCheckViewController : SecondViewController @property(nonatomic,retain) NSMutableArray *array; @property(nonatomic,assign) int selectedValue; @end DXWCheckViewController.m: #import "DXWCheckViewController.h" @interface DXWCheckViewController () @end @implementation DXWCheckViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { self.image = [UIImage imageNamed:@"checkmarkControllerIcon.png"]; self.title = @"省市"; } return self; } - (void)viewDidLoad { [super viewDidLoad]; self.selectedValue = -1; self.array = [[NSMutableArray alloc] initWithObjects:@"北京",@"上海",@"重庆",@"天津",@"江苏",@"浙江",@"河北",@"湖南",@"河南",@"湖北", nil]; } -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return [self.array count]; } -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; } int row = [indexPath row]; cell.textLabel.text = [self.array objectAtIndex:row]; // cell.imageView.image = ((DXWDiscosureButtonViewController *)self.array[row]).image; //有右边的>符号 //cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; if (self.selectedValue == row) { cell.accessoryType = UITableViewCellAccessoryCheckmark; } else { cell.accessoryType = UITableViewCellAccessoryNone; } return cell; } -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { int row = [indexPath row]; //方法一:简洁明了的方法 //self.selectedValue = row; //[tableView reloadData]; //方法二:现货的以前的选中的cell,将其accessoryType设为None NSIndexPath *path = [NSIndexPath indexPathForRow:self.selectedValue inSection:0]; //将轩中行的accessoryType设为Checkmark UITableViewCell *oldCell = [tableView cellForRowAtIndexPath:path]; oldCell.accessoryType = UITableViewCellAccessoryNone; //将selectedValue设为当前轩中行 self.selectedValue = row; UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; cell.accessoryType = UITableViewCellAccessoryCheckmark; } -(void)dealloc { [self.array release]; [super dealloc]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; } @end 8.添加继承自SecondViewController的班级选项卡的二级视图控制器,命名为ButtonViewController ButtonViewController.h: #import "SecondViewController.h" @interface ButtonViewController : SecondViewController @property(retain,nonatomic) NSArray *array; @end ButtonViewController.m: #import "ButtonViewController.h" @interface ButtonViewController () @end @implementation ButtonViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { self.image = [UIImage imageNamed:@"rowControlsIcon"]; self.title = @"班级"; } return self; } - (void)viewDidLoad { [super viewDidLoad]; self.array = [NSArray arrayWithObjects:@"一班",@"二班",@"三班",@"四班",@"五班",@"六班",@"七班",@"八班",@"九班",@"十班",@"十一班",@"十二班",@"十三班",@"十四班",nil]; } //行数 -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return [self.array count]; } -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *identifier = @"Identifier"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier]; UIImage *image = [UIImage imageNamed:@"button_up"];//设置button的背景图片 UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [button setBackgroundImage:image forState:UIControlStateNormal]; //button.frame = CGRectMake(0, 0, 150, 30); [button sizeToFit];//自适应图片的大小 [button setTitle:@"详细信息" forState:UIControlStateNormal]; [button addTarget:self action:@selector(buttonClick:) forControlEvents:UIControlEventTouchUpInside]; cell.accessoryView = button; } cell.accessoryView.tag = [indexPath row]; int row = [indexPath row]; cell.textLabel.text = self.array[row]; return cell; } -(void)buttonClick:(id)sender { //通过button的上一级可以拿到那个cell,在通过cell来拿到它所在的行数,然后可以获得相应的数据 UIButton *button = sender; UITableViewCell *cell = (UITableViewCell *)[button superview]; NSIndexPath *indexpath = [self.tableView indexPathForCell:cell]; int row = [indexpath row]; NSLog(@"%d班",row+1); UIAlertView *a = [[UIAlertView alloc] initWithTitle:@"详细信息" message:[NSString stringWithFormat:@"%d班",row+1] delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; [a show]; } @end 9.创建可以移动的tableview效果,命名为MoveViewController,继承自SecondViewController,不带xib 操作:点击Edit按钮之后,可以点击每行右边的按钮进行拖动。 MoveViewController.h: #import "SecondViewController.h" @interface MoveViewController : SecondViewController @property(retain,nonatomic)NSMutableArray *array; @end MoveViewController.m: #import "MoveViewController.h" @interface MoveViewController () @end @implementation MoveViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { self.title = @"Move"; self.image = [UIImage imageNamed:@"moveMeIcon"]; NSArray *arr = @[@"小明",@"小花",@"小李",@"小王",@"小丁",@"小张",@"小康",@"小刘",@"小墩",@"大墩"]; self.array = [arr mutableCopy]; } return self; } -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return [self.array count]; } -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *identifier = @"Identifier"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier]; } int row = [indexPath row]; cell.textLabel.text = self.array[row]; return cell; } - (void)viewDidLoad { [super viewDidLoad]; //首先要添加右上角的一个edit按钮,按钮按下去可以设置可以编辑 UIBarButtonItem *button = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemEdit target:self action:@selector(itemButtonClick:)]; //[button setTitle:@"move"]; self.navigationItem.rightBarButtonItem = button; } -(void)itemButtonClick:(id)sender { //设置可以编辑 [self.tableView setEditing:!self.tableView.editing];//设置成和当前状态相反的状态 } //设置编译图标 -(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { return UITableViewCellEditingStyleNone; } //设置是否可以移动 -(BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { return YES; } -(void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)sourceIndexPath toIndexPath:(NSIndexPath *)destinationIndexPath { id object= self.array`sourceIndexPath row`; [self.array removeObject:self.array`sourceIndexPath row`]; [self.array insertObject:object atIndex:[destinationIndexPath row]]; NSLog(@"%d",[self.array count]); } @end 10.创建一个带删除功能的tableViewController,同样继承自SecondViewController,不带xib DelViewController.h: #import "SecondViewController.h" @interface DelViewController : SecondViewController @property(retain,nonatomic)NSMutableArray *array; @end DelViewController.m: #import "DelViewController.h" @interface DelViewController () @end @implementation DelViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { self.title = @"Delete"; self.image = [UIImage imageNamed:@"deleteMeIcon"]; NSArray *arr = @[@"小明",@"小花",@"小李",@"小王",@"小丁",@"小张",@"小康",@"小刘",@"小墩",@"大墩"]; self.array = [arr mutableCopy]; } return self; } -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return [self.array count]; } -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *identifier = @"Identifier"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier]; } int row = [indexPath row]; cell.textLabel.text = self.array[row]; return cell; } - (void)viewDidLoad { [super viewDidLoad]; //首先要添加右上角的一个edit按钮,按钮按下去可以设置可以编辑 UIBarButtonItem *button = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemEdit target:self action:@selector(itemButtonClick:)]; //[button setTitle:@"move"]; self.navigationItem.rightBarButtonItem = button; } -(void)itemButtonClick:(id)sender { //设置可以编辑 [self.tableView setEditing:!self.tableView.editing];//设置成和当前状态相反的状态 if (self.tableView.editing) { [self.navigationItem.rightBarButtonItem setTitle:@"Done"]; } else { [self.navigationItem.rightBarButtonItem setTitle:@"Delete"]; } } //设置编译图标 -(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { return UITableViewCellEditingStyleDelete; } //将数据从数组和tableview中删掉 -(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { int row = [indexPath row]; [self.array removeObjectAtIndex:row]; [self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationRight]; } //可以根据行来设置delete按钮位置上button的标题 -(NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath { return @"我要删你"; } @end 11.创建一个继承自SecondViewController,具有添加功能的视图控制器,命名为AddViewController AddViewController.h: #import "SecondViewController.h" @interface AddViewController : SecondViewController<UIAlertViewDelegate> @property(retain,nonatomic)NSMutableArray *array; @property(retain,nonatomic)NSIndexPath *indexPath; @end AddViewController.m: #import "AddViewController.h" @interface AddViewController () @end @implementation AddViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { self.title = @"Add"; self.image = [UIImage imageNamed:@"deleteMeIcon"]; NSArray *arr = @[@"小明",@"小花",@"小李",@"小王",@"小丁",@"小张",@"小康",@"小刘",@"小墩",@"大墩"]; self.array = [arr mutableCopy]; } return self; } -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return [self.array count]; } -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *identifier = @"Identifier"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier]; } int row = [indexPath row]; cell.textLabel.text = self.array[row]; return cell; } - (void)viewDidLoad { [super viewDidLoad]; //首先要添加右上角的一个edit按钮,按钮按下去可以设置可以编辑 UIBarButtonItem *button = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemEdit target:self action:@selector(itemButtonClick:)]; //[button setTitle:@"move"]; self.navigationItem.rightBarButtonItem = button; } -(void)itemButtonClick:(id)sender { //设置可以编辑 [self.tableView setEditing:!self.tableView.editing];//设置成和当前状态相反的状态 if (self.tableView.editing) { [self.navigationItem.rightBarButtonItem setTitle:@"Done"]; } else { [self.navigationItem.rightBarButtonItem setTitle:@"Delete"]; } } //设置编译图标 -(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { return UITableViewCellEditingStyleInsert; } //实现UIAlertView代理协议 -(void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex { //获取AlertView中的数据 NSString *str = [alertView textFieldAtIndex:0].text; //将数据插入到array数组中(位置是点击的位置的下一行) [self.array insertObject:str atIndex:[self.indexPath row]+1]; //用点击位置的下一行创建一个新的NSIndexPath int newrow = [self.indexPath row]+1; NSIndexPath *index = [NSIndexPath indexPathForRow:newrow inSection:0]; //在tableView的这个NSIndexPath中插入数据 [self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:index] withRowAnimation: UITableViewRowAnimationFade]; } //添加 -(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { //获得点击的indexPath self.indexPath = indexPath; //创建一个UIAlertView,用来获得数据 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"enterstring" message:nil delegate:self cancelButtonTitle:@"ok" otherButtonTitles: nil]; //带有输入框的UIAlertView alert.alertViewStyle = UIAlertViewStylePlainTextInput; [alert show]; //添加固定的内容 // [self.array insertObject:@"aaa" atIndex:[indexPath row]]; // int row = [indexPath row]; // [self.array removeObjectAtIndex:row]; // [self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationRight]; } @end 12.创建一个Person类,具有名字和年龄属性 Person.h: #import <Foundation/Foundation.h> @interface Person : NSObject<NSCopying> @property(copy,nonatomic) NSString *name; @property(assign,nonatomic) int age; @end Person.m: #import "Person.h" @implementation Person -(id)copyWithZone:(NSZone *)zone { Person *p = [[Person alloc] init] ; //拷贝函数不需要release,这里用autorelease会报错 p.name = [self.name copy]; p.age = self.age; return p; } -(NSString *)description { NSLog(@"%@,%d",self.name,self.age); } @end 13.创建继承自SecondViewcontroller的具有修改功能的tableViewController,命名为ChangeViewController,不带xib文件: ChangeViewController.h: #import "SecondViewController.h" #import "Person.h" //申明协议,修改自己页面中的内容 @protocol change <NSObject> //协议1 //-(void)changeData:(id)controller;//这里也可以是子视图的controller对象,然后想获取对象里面的任何值都可以 //协议2 -(void)changeData:(int)row Per:(Person *)p; @end @interface ChangeViewController : SecondViewController<change> @property(retain,nonatomic)NSMutableArray *array; @property(copy,nonatomic)Person *per; //-(void)changeData:(int)row; @end ChangeViewController.m: #import "ChangeViewController.h" #import "EditViewController.h" @interface ChangeViewController () @end @implementation ChangeViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { self.title = @"修改"; self.image = [UIImage imageNamed:@"detailEditIcon"]; self.array = [[NSMutableArray alloc] initWithCapacity:5]; for (int i=0; i<5; i++) { Person *p = [[Person alloc] init]; p.name = [NSString stringWithFormat:@"xiaoming%d",i]; p.age = 20+i; [self.array addObject:p]; } } return self; } - (void)viewDidLoad { [super viewDidLoad]; } -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return [self.array count]; } -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { int row = [indexPath row]; static NSString *identifier = @"Identifier"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:identifier]; } Person *p = self.array[row]; cell.textLabel.text = p.name; cell.detailTextLabel.text = [NSString stringWithFormat:@"%d",p.age]; return cell; } //实现遵循协议的方法 -(void)changeData:(int)row Per:(Person *)p { [self.array replaceObjectAtIndex:row withObject:p]; [self.tableView reloadData]; } -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { Person *p = self.array[indexPath.row]; NSLog(@"%@,%d",p.name,p.age); EditViewController *edit = [[EditViewController alloc] init]; edit.per = [p copy]; edit.row = indexPath.row; edit.delegate = self; [self.navigationController pushViewController:edit animated:YES]; } @end 14.创建可以保存修改值的三级子试图控制器,带有xib EditViewController.h: #import <UIKit/UIKit.h> #import "Person.h" #import "ChangeViewController.h" @interface EditViewController : UIViewController @property(copy,nonatomic)Person *per;//对象 @property (retain, nonatomic) IBOutlet UITextField *name; @property (retain, nonatomic) IBOutlet UITextField *age; @property(assign,nonatomic) int row; //位置 @property(nonatomic,retain)id<change>delegate; @end EditViewController.m: #import "EditViewController.h" @interface EditViewController () @end @implementation EditViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { self.title = @"信息修改"; } return self; } -(void)viewWillAppear:(BOOL)animated { self.name.text = self.per.name; self.age.text = [NSString stringWithFormat:@"%d",self.per.age]; } - (void)viewDidLoad { [super viewDidLoad]; //首先要添加右上角的一个edit按钮,按钮按下去可以设置可以编辑 UIBarButtonItem *button = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStyleBordered target:self action:@selector(itemLeftButtonClick:)]; self.navigationItem.leftBarButtonItem = button; UIBarButtonItem *button1 = [[UIBarButtonItem alloc] initWithTitle:@"保存" style:UIBarButtonItemStyleBordered target:self action:@selector(itemRightButtonClick:)]; self.navigationItem.rightBarButtonItem = button1; } //返回 -(void)itemLeftButtonClick:(id)sender { [self.navigationController popViewControllerAnimated:YES]; } //保存 -(void)itemRightButtonClick:(id)sender { [self changedata]; [self.navigationController popViewControllerAnimated:YES]; } - (void)changedata { self.per.name = self.name.text; self.per.age = [self.age.text intValue]; if ([self.delegate respondsToSelector:@selector(changeData:Per:)]) { [self.delegate changeData:self.row Per:self.per]; } } - (void)dealloc { [_name release]; [_age release]; [super dealloc]; } @end Demo源文件: http://download.csdn.net/detail/s10141303/5999165 ==================== 迂者 丁小未 CSDN博客专栏================= MyBlog:http://blog.csdn.net/dingxiaowei2013 MyQQ:1213250243 Unity QQ群:858550 cocos2dx QQ群:280818155 ======================相互学习,共同进步=================== 转载请注明出处:http://blog.csdn.net/dingxiaowei2013/article/details/10170290 欢迎关注我的微博:http://weibo.com/u/2590571922 本文转蓬莱仙羽51CTO博客,原文链接:http://blog.51cto.com/dingxiaowei/1366426,如需转载请自行联系原作者

优秀的个人博客,低调大师

iOS 自动构建套件 - flow.ci + fir.im + Coding

前言 相信很多最开始接触自动构建都是从Jenkins开始的。都是纯手工搭建,本地代码创库也是Gitblit搭建的。基本上每次换工作,都需要重新搭建一遍,实在心累。期间踩坑无数,暂且不表。接触到flow.ci还是因为之前一直在用他们的 APP 发布平台服务fir.im。本文是我对flow.ci的一些体验,期望可以帮助 iOSer 快速上手。 准备工作 项目的 Git 仓库(什么?还在用SVN!恨铁不成钢的表情,SVN转Git可以看这里) 注册Coding账号,创建Coding私有创库(免费的哦)。 如果之前有Git仓库,也可以新建一个专门用于自动构建的分支 注册flow.ci账号(不收费,不过要手机号码接收短信验证码) 注册fir.im账号,生成并获取API Token(不收费,不过要手机号码接收短信验证码) 绑定 Coding 账户。在dashboard页面点击用户头像 - Git仓库或创建项目都可以绑定 Coding 账户。(GitHub,Bitbucket,Coding,GitLab,码云都是支持的) 证书和描述文件。引用一下flow.ci自己的详细导出证书和描述文件教程。 (企业证书请忽略)切记在描述文件里面添加要安装设备的 UDID,否则会出现从 fir.im 下载的时候,提示“无法安装该应用”。到时候需要重新在描述文件添加 UDID,然后重新上传描述文件并再次构建。 开工 项目配置 在flow.ci的dashboard页面直接点击创建项目。 选择 Coding 并选择对应的代码仓库。 项目基础配置。选择苹果图标,Xcode版本。点击创建。 工作流配置。这是个精细化的配置,指定构建分支。你还可以设置定时任务。每天下班的时候构建一次。如果你有多个Scheme(比如APP有iPhone和iPad版本,免费和收费版本),这个时候可以在编译 - Scheme指定特定的Scheme。完成后可以配置一些构建失败和成功的通知(添加构建成功邮箱地址,小心邮件爆炸哦)。 添加成员。输入你的组员和测试人员的Email地址,点击邀请。他们会收到标题为Project invitation的邮件。按照提示操作,就可加入你的团队了。 设置。找到上传证书 & Provisioning Profile,上传准备工作6准备的描述文件和证书。 构建 自动构建。选择"构建列表",一般等几秒钟就会出现你配置仓库的分支信息了. 手动构建。如果你嫌自动构建读取分支信息慢,点击手动构建,选择自己想构建的分支。 构建过程。点击构建当前构建条目(如果状态是准备资源,则需要等待几秒钟。然后自动会变为运行中。),即可看到如下图的构建流程。通常编译阶段会比较容易发生错误信息。按照错误提示修改项目,然后提交到Coding。flow.ci会自动同步代码库并运行构建。 构建后。发布构建的 APP 到 fir.im 平台。首先需要点击工作流中左边的"+"号并搜索fir,添加fir.im上传插件。在FIR_API_TOKEN框中填入准备工作4获取的API Token。 如果一切顺利的话,你会在fir.im - 我的应用里面看到构建成功的APP包了。赶紧分享你的APP下载二维码吧。 后面两个选项可以选填。$FIR_CHANGELOG用于显示在 fir.im 下载页面的更新日志。一般我会填 “flow.ci build” 。用于区分手动上传和 flow.ci 自动构建。 本文转自帅气的头头博客51CTO博客,原文链接http://blog.51cto.com/12902932/1926251如需转载请自行联系原作者 sshpp

优秀的个人博客,低调大师

[IOS]开源库RegexKitLite正则表达式的使用

2.工程中添加libicucore.dylib frameworks。 友情提醒:一般人导入RegexKitLite编译报错,正是因为没有导入这个类库,加上这个就OK了 3.现在所有的nsstring对象就可以调用RegexKitLite中的方法了。 NSString *email = @”kkk@aaa.com”; [email isMatchedByRegex:@"\\b([a-zA-Z0-9%_.+\\-]+)@([a-zA-Z0-9.\\-]+?\\.[a-zA-Z]{2,6})\\b”]; 返回YES,证明是email格式,需要注意的是RegexKitLite用到的正则表达式和wiki上的略有区别。 searchString = @”http://www.example.com:8080/index.html”; regexString = @”\\bhttps?://[a-zA-Z0-9\\-.]+(?::(\\d+))?(?:(?:/[a-zA-Z0-9\\-._?,'+\\&%$=~*!():@\\\\]*)+)?”; NSInteger portInteger = [[searchString stringByMatching:regexString capture:1L] integerValue]; NSLog(@”portInteger: ‘%ld’”, (long)portInteger); // 2008-10-15 08:52:52.500 host_port[8021:807] portInteger: ‘8080′ 取string中http的例子。 下面给出常用的一些正则表达式(其实就是RegexKitLite官网上的,怕同鞋偷情不看) Character Description \a Match a BELL, \u0007 \A Match at the beginning of the input. Differs from ^ in that \A will not match after a new-line within the input. \b, outside of a [Set] Match if the current position is a word boundary. Boundaries occur at the transitions between word \w and non-word \W characters, with combining marks ignored. See also: RKLUnicodeWordBoundaries \b, within a [Set] Match a BACKSPACE, \u0008. \B Match if the current position is not a word boundary. \cx Match a Control-x character. \d Match any character with the Unicode General Category of Nd (Number, Decimal Digit). \D Match any character that is not a decimal digit. \e Match an ESCAPE, \u001B. \E Terminates a \Q…\E quoted sequence. \f Match a FORM FEED, \u000C. \G Match if the current position is at the end of the previous match. \n Match a LINE FEED, \u000A. \N{Unicode Character Name} Match the named Unicode Character. \p{Unicode Property Name} Match any character with the specified Unicode Property. \P{Unicode Property Name} Match any character not having the specified Unicode Property. \Q Quotes all following characters until \E. \r Match a CARRIAGE RETURN, \u000D. \s Match a white space character. White space is defined as [\t\n\f\r\p{Z}]. \S Match a non-white space character. \t Match a HORIZONTAL TABULATION, \u0009. \uhhhh Match the character with the hex value hhhh. \Uhhhhhhhh Match the character with the hex value hhhhhhhh. Exactly eight hex digits must be provided, even though the largest Unicode code point is \U0010ffff. \w Match a word character. Word characters are [\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}]. \W Match a non-word character. \x{h…} Match the character with hex value hhhh. From one to six hex digits may be supplied. \xhh Match the character with two digit hex value hh. \X Match a Grapheme Cluster. \Z Match if the current position is at the end of input, but before the final line terminator, if one exists. \z Match if the current position is at the end of input. \n Back Reference. Match whatever the nth capturing group matched. n must be a number ≥ 1 and ≤ total number of capture groups in the pattern.Note: Octal escapes, such as \012, are not supported. [pattern] Match any one character from the set. See ICU Regular Expression Character Classes for a full description of what may appear in the pattern. . Match any character. ^ Match at the beginning of a line. $ Match at the end of a line. \ Quotes the following character. Characters that must be quoted to be treated as literals are * ? + [ ( ) { } ^ $ | \ . / OperatorsOperator Description | Alternation. A|B matches either A or B. * Match zero or more times. Match as many times as possible. + Match one or more times. Match as many times as possible. ? Match zero or one times. Prefer one. {n} Match exactly n times. {n,} Match at least n times. Match as many times as possible. {n,m} Match between n and m times. Match as many times as possible, but not more than m. *? Match zero or more times. Match as few times as possible. +? Match one or more times. Match as few times as possible. ?? Match zero or one times. Prefer zero. {n}? Match exactly n times. {n,}? Match at least n times, but no more than required for an overall pattern match. {n,m}? Match between n and m times. Match as few times as possible, but not less than n. *+ Match zero or more times. Match as many times as possible when first encountered, do not retry with fewer even if overall match fails. Possessive match. ++ Match one or more times. Possessive match. ?+ Match zero or one times. Possessive match. {n}+ Match exactly n times. Possessive match. {n,}+ Match at least n times. Possessive match. {n,m}+ Match between n and m times. Possessive match. (…) Capturing parentheses. Range of input that matched the parenthesized subexpression is available after the match. (?:…) Non-capturing parentheses. Groups the included pattern, but does not provide capturing of matching text. Somewhat more efficient than capturing parentheses. (?>…) Atomic-match parentheses. First match of the parenthesized subexpression is the only one tried; if it does not lead to an overall pattern match, back up the search for a match to a position before the (?> . (?#…) Free-format comment (?#comment). (?=…) Look-ahead assertion. True if the parenthesized pattern matches at the current input position, but does not advance the input position. (?!…) Negative look-ahead assertion. True if the parenthesized pattern does not match at the current input position. Does not advance the input position. (?<=…) Look-behind assertion. True if the parenthesized pattern matches text preceding the current input position, with the last character of the match being the input character just before the current position. Does not alter the input position. The length of possible strings matched by the look-behind pattern must not be unbounded (no * or + operators). (?<!…) Negative Look-behind assertion. True if the parenthesized pattern does not match text preceding the current input position, with the last character of the match being the input character just before the current position. Does not alter the input position. The length of possible strings matched by the look-behind pattern must not be unbounded (no * or + operators). (?ismwx-ismwx:…) Flag settings. Evaluate the parenthesized expression with the specified flags enabled or -disabled. (?ismwx-ismwx) Flag settings. Change the flag settings. Changes apply to the portion of the pattern following the setting. For example, (?i) changes to a case insensitive match. See also: Regular Expression Options 同时需要注意的是转义字符哦~~在safari上复制会直接转换(网站蛮人性化的) 同时也提供了转换工具,safari测试支持,可能下载的时候有点慢,耐心等待,链接 本文转蓬莱仙羽51CTO博客,原文链接:http://blog.51cto.com/dingxiaowei/1366248,如需转载请自行联系原作者

优秀的个人博客,低调大师

安装IDSM-2系统映像到Catalyst IOS Software中

1.下载IDSM-2系统映像文件到FTP的根目录下 2.登录到交换机的命令行界面 3.启动IDSM-2 router#hw-module module reset cf:1 4.切换进入到IDSM router#session slot processor 1 5.输入用户名、密码 login:guest password:cisco 6.安装系统映像 guest@hostname.localdomain#upgrade ftp://user@ftp_server_ip_address/directory_path/WS-SVC-IDSM2-K9-sys-1.1-a-6.1-1.190-E0.1.bin.gz 7.指定FTP服务器的密码 文件下载完成后,会询问是否继续处理 Upgrading will wipe out the contents on the hard disk. Do you want to proceed installing it [y|n]: 8.输入Y继续 文件安装完成后,会返回到命令行界面 9.退出命令行,返回到交换机的命令行界面 10.重启IDSM-2 router#hw-module module reset hdd:1 11.验证IDSM-2的软件版本及状态 router#show module 12.再次切换至IDSM-2 router#session slot processor 1 13.初始化IDSM-2 本文转自 弯月楼主 51CTO博客,原文链接:http://blog.51cto.com/05wylz/1601040,如需转载请自行联系原作者

优秀的个人博客,低调大师

iOS CoCoa编程中视图控制器与视图类

UITabBarController类,选项卡类允许用户在多个视图控制器之间移动并在屏幕的底部可定制该栏。向不同的视图同时提供一次单击访问,向用户选择的屏幕和编辑底栏的屏幕同时提供More按钮。 选项卡类的方便之处就是不需要象导航栏那样以栈的方式推入和弹出视图的操作,而是组建一系列的控制器(它们各自可以是UIViewController、UINavigationController、UITableViewController或其他任何类型的视图控制器),并通过设置栏的viewControllers属性将其添加到选项卡栏,使每个选项卡对应一个试图控制器。 一、创建UITabBarController · 常见的在应用程序委托类的applicationDidFinishLaunching:方法中创建,这通常可为应用窗口提供根视图。 // 创建一个UITabBarController对象 UITabBarController *tabBarController = [[UITabBarController alloc] init]; // tabBarController.delegate = self; // 创建一系列要添加到每个具体Tab卡的视图控制器 MyViewController *vc1 = [[MyViewController alloc] init]; MyOtherViewController *vc2 = [[MyViewController alloc] init]; // 将创建好的这些视图控制器先添加到一个Array对象中,再将此数组分配给Tab Bar Controller的viewControllers属性 NSArray *controllers = [NSArray arrayWithObjects:vc1,vc2,nil]; tabBarControllers.viewControllers = controllers; /* 也或者 NSMutableArray *controllers =[[NSMutableArray alloc] initWithCapacity:2]; [controllers addObject:vc1]; [controllers addObject:vc2]; */ // 将TabBar控制器的当前视图添加到窗口 [window addSubview:tabBarController.view]; // 或者设置应用窗口的根视图管理器为TabBarController self.window.rootViewController = self.tabBarController; 当然在应用程序委托AppDelegate类中创建UITabBarController,相当于创建了一个基于Tab Bar的工程项目。不过,也可以视具体情况,我们直接在一个独立的视图控制器中创建UITabBarController实例对象,如自定义一个用于视图切换的控制器类ViewSwitcherViewController,就可在其中的viewDidLoad方法中创建所需要的TabBarController。 · 在实现UITabBarControllerDelegate委托的视图控制器中重写init方法来自定义UITabBarItem条目。 代码一是由initWithNibName:方法来加载具体的某个视图控制器并自定义该控制器中TabBarItem样式外观等。 - (id)init { if(self = [super initWithNibName:@"MyViewController" bundle:nil]) { self.title = @"My View Controller"; UIImage *anImage = [UIImage imageNamed:@"MyImage.png"]; UITabBarItem *theItem = [[UITabBarItem alloc] initWithTitle:@"Home" image:anImage tag:0]; self.tabBarItem = theItem; [theItem release]; } return self; } 代码二我们也可以直接在具体的视图控制器内部重写init方法。 - (id)init { if([super init] != nil) { UITabBarItem *item = [[UITabBarItem alloc] initWithTitle:@"Home" image:[UIImage imageNamed:@"MyImage.png"] tag:0]; self.tabBarItem = item; [item release]; } return self; } · 实现所需的委托方法,以让UITabBarController能够正常触发这些回调方法。 tabBarController:didSelectViewController: 是当用户选择一个新的选项卡时,控制器会发送这个消息。 - (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController { // 捕捉selectedIndex,可确定当前所选选项卡 NSNumber *tabNumber = [NSNumber numberWithInt:[tabBarController selectedIndex]]; // 使用iPhone内置用户默认系统NSUserDefaults,利用setObject:forKey:为关键字设定值 [[NSUserDefaults standardUserDefaults] setObject:tabNumber forKey:@"selectedTab"]; [[NSUserDefaults standardUserDefaults] synchronize]; // 选项卡图标项右上角红色小红圈数字提示 viewController.tabBarItem.badgeValue = [NSString stringWithFormat:@"%d",80]; } 本文转自 wws5201985 51CTO博客,原文链接:http://blog.51cto.com/wws5201985/765698,如需转载请自行联系原作者

优秀的个人博客,低调大师

在IOS开发中根据(id)sender获取UIButton的信息

-(IBAction) buttonClick:(id)sender//sender参数,表示接受哪个按钮消息 { UIButton *button = (UIButton *)sender;//参数id是一个通用内型,此处将其强制转换成UIButton内型 //每个button都有唯一的tag,系统默认陪标示用的,是一个整数 NSString *title =[NSString stringWithFormat:@"Button tag %d",button.tag];//将button tag 转换成字符串输出 NSString *mesage = [button currentTitle];//取得button名称 } 网上搜的,记录一下 本文转自 驿落黄昏 51CTO博客,原文链接:http://blog.51cto.com/yiluohuanghun/1153314,如需转载请自行联系原作者

资源下载

更多资源
Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

用户登录
用户注册
修改密码
忘记密码