当前位置: 首页 > news >正文

在哪个网站上做简历做网页制作怎么样

在哪个网站上做简历,做网页制作怎么样,网上推广方法,付费推广的平台在界面的跳转有两种方法#xff0c;一种方法是先删除原来的界面#xff0c;然后在插入新的界面#xff1a;如下代码 if (self.rootViewController.view.superview nil) { [singleDollController.view removeFromSuperview]; [self.view insertSubview:rootViewControlle…在界面的跳转有两种方法一种方法是先删除原来的界面然后在插入新的界面如下代码 if (self.rootViewController.view.superview  nil) { [singleDollController.view removeFromSuperview]; [self.view insertSubview:rootViewController.view atIndex:0]; } else { [rootViewController.view removeFromSuperview]; [self.view insertSubview:singleDollController.view atIndex:0]; } 使用这种方式无法实现界面跳转时的动画效果。 另一中方式为将跳转的界面的Controller放入到UINavigationController中使用push或pop实现跳转使用这种方式可用实现动画效果 navController  [[UINavigationController alloc]init]; [navController setNavigationBarHidden:YES]; [window addSubview:navController.view]; rootView  [[RootViewController alloc] initWithNibName:RootViewController bundle:nil]; [navController pushViewController:rootView animated:NO]; /// self.singleDollView  view; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0.5]; [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.navController.view cache:NO]; [self.navController pushViewController:self.singleDollView animated:NO]; [UIView commitAnimations]; 1 创建一个基于Navigationbased Application的iphone工程为什么要创建基于Navigationbased Application的工程呢因为这样系统就会自动将Navigation视图加到我们的窗口视图中这样我们就不用自己手动去加并且可以用 [self.navigationControllerpushViewController:otherviewanimated:YES]去跳转页面。当设置每个页面的标题后会在页面左上角自动生成后退导航按钮多方便呀,当然需要在建立后将xib文件里面的tableview去掉加入view。 2 新建一个页面我这里是OtherView让系统自动生成.h,.xib文件。 3 第一个页面上面添加一个文本筐和一个按钮点击按钮后调转到第二个页面并将文本筐里面的数据传入第二个页面。第二个页面用一个label来显示传过来的数据。 4 代码 首先是自动生成的协议里面的代码注意看navigationController MynavAppDelegate.h代码 [html] view plaincopyprint? #import UIKit/UIKit.h    interface MynavAppDelegate : NSObject UIApplicationDelegate {    }    property (nonatomic, retain) IBOutlet UIWindow *window;    property (nonatomic, retain) IBOutlet UINavigationController *navigationController;    end   #import UIKit/UIKit.h interface MynavAppDelegate : NSObject UIApplicationDelegate { } property (nonatomic, retain) IBOutlet UIWindow *window; property (nonatomic, retain) IBOutlet UINavigationController *navigationController; end MynavAppDelegate.m代码 [cpp] view plaincopyprint? #import MynavAppDelegate.h     implementation MynavAppDelegate      synthesize window_window;    synthesize navigationController_navigationController;    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions  {      self.window.rootViewController  self.navigationController;      [self.window makeKeyAndVisible];      return YES;  }    - (void)applicationWillResignActive:(UIApplication *)application  {       }    - (void)applicationDidEnterBackground:(UIApplication *)application  {       }    - (void)applicationWillEnterForeground:(UIApplication *)application  {        }    - (void)applicationDidBecomeActive:(UIApplication *)application  {       }    - (void)applicationWillTerminate:(UIApplication *)application  {        }    - (void)dealloc  {      [_window release];      [_navigationController release];      [super dealloc];  }    end   #import MynavAppDelegate.h implementation MynavAppDelegate synthesize window_window; synthesize navigationController_navigationController; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window.rootViewController self.navigationController; [self.window makeKeyAndVisible]; return YES; } - (void)applicationWillResignActive:(UIApplication *)application { } - (void)applicationDidEnterBackground:(UIApplication *)application { } - (void)applicationWillEnterForeground:(UIApplication *)application { } - (void)applicationDidBecomeActive:(UIApplication *)application { } - (void)applicationWillTerminate:(UIApplication *)application { } - (void)dealloc { [_window release]; [_navigationController release]; [super dealloc]; } end 第一个页面的代码 RootViewController.h [cpp] view plaincopyprint? #import UIKit/UIKit.h   #import Foundation/Foundation.h     interface RootViewController : UIViewController {      IBOutlet UITextField * message;//需要传出的数据   }    property(nonatomic,retain) UITextField * message;    -(IBAction) send;//按钮点击方法       end   #import UIKit/UIKit.h #import Foundation/Foundation.h interface RootViewController : UIViewController { IBOutlet UITextField * message;//需要传出的数据 } property(nonatomic,retain) UITextField * message; -(IBAction) send;//按钮点击方法 end RootViewController.m [cpp] view plaincopyprint? #import RootViewController.h   #import OtherView.h     implementation RootViewController    synthesize message;      -(IBAction) send{      OtherView  *otherview  [[OtherView alloc] initWithNibName:OtherView bundle:nil];            otherview.mystring message.text;            [self.navigationController pushViewController:otherview animated:YES];            [otherview release];  }      - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {            UITouch *touch  [[event allTouches] anyObject];            if (touch.tapCount  1) {                    [message resignFirstResponder];                }  }    - (void)viewDidLoad  {      self.title  第一个页面;      [super viewDidLoad];  }      - (void)didReceiveMemoryWarning  {      // Releases the view if it doesnt have a superview.       [super didReceiveMemoryWarning];            // Relinquish ownership any cached data, images, etc that arent in use.   }    - (void)viewDidUnload  {      [super viewDidUnload];        // Relinquish ownership of anything that can be recreated in viewDidLoad or on demand.       // For example: self.myOutlet  nil;   }    - (void)dealloc  {      [message release];      [super dealloc];  }    end   #import RootViewController.h #import OtherView.h implementation RootViewController synthesize message; -(IBAction) send{ OtherView *otherview [[OtherView alloc] initWithNibName:OtherView bundle:nil]; otherview.mystring message.text; [self.navigationController pushViewController:otherview animated:YES]; [otherview release]; } - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch [[event allTouches] anyObject]; if (touch.tapCount 1) { [message resignFirstResponder]; } } - (void)viewDidLoad { self.title 第一个页面; [super viewDidLoad]; } - (void)didReceiveMemoryWarning { // Releases the view if it doesnt have a superview. [super didReceiveMemoryWarning]; // Relinquish ownership any cached data, images, etc that arent in use. } - (void)viewDidUnload { [super viewDidUnload]; // Relinquish ownership of anything that can be recreated in viewDidLoad or on demand. // For example: self.myOutlet nil; } - (void)dealloc { [message release]; [super dealloc]; } end 第二个页面代码 OtherView.h [cpp] view plaincopyprint? #import UIKit/UIKit.h       interface OtherView : UIViewController {      IBOutlet UILabel * mylabel;//用来显示传入的数据       NSString * mystring;//数据传入用到的属性   }    property(nonatomic,retain) UILabel * mylabel;  property(nonatomic,retain) NSString * mystring;      end   #import UIKit/UIKit.h interface OtherView : UIViewController { IBOutlet UILabel * mylabel;//用来显示传入的数据 NSString * mystring;//数据传入用到的属性 } property(nonatomic,retain) UILabel * mylabel; property(nonatomic,retain) NSString * mystring; end OtherView.m [cpp] view plaincopyprint? #import OtherView.h       implementation OtherView    synthesize mylabel,mystring;        - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil  {      self  [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];      if (self) {          // Custom initialization       }      return self;  }    - (void)dealloc  {      [mylabel release];      [mystring release];      [super dealloc];  }    - (void)didReceiveMemoryWarning  {      // Releases the view if it doesnt have a superview.       [super didReceiveMemoryWarning];            // Release any cached data, images, etc that arent in use.   }    #pragma mark - View lifecycle     - (void)viewDidLoad  {           [super viewDidLoad];       self.title  第二个页面;      self.mylabel.textmystring;     // mylabel.text  mystring;       // Do any additional setup after loading the view from its nib.   }    - (void)viewDidUnload  {      [super viewDidUnload];      // Release any retained subviews of the main view.       // e.g. self.myOutlet  nil;   }    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation  {      // Return YES for supported orientations       return (interfaceOrientation  UIInterfaceOrientationPortrait);  }    end   #import OtherView.h implementation OtherView synthesize mylabel,mystring; - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { // Custom initialization } return self; } - (void)dealloc { [mylabel release]; [mystring release]; [super dealloc]; } - (void)didReceiveMemoryWarning { // Releases the view if it doesnt have a superview. [super didReceiveMemoryWarning]; // Release any cached data, images, etc that arent in use. } #pragma mark - View lifecycle - (void)viewDidLoad { [super viewDidLoad]; self.title 第二个页面; self.mylabel.textmystring; // mylabel.text mystring; // Do any additional setup after loading the view from its nib. } - (void)viewDidUnload { [super viewDidUnload]; // Release any retained subviews of the main view. // e.g. self.myOutlet nil; } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return (interfaceOrientation UIInterfaceOrientationPortrait); } end
http://www.sadfv.cn/news/308811/

相关文章:

  • 网站的设计与开发的图片台州网站建设技术支持
  • 做网站有自己的服务器网络维护费
  • 怎么做室内设计公司网站自助手机网站
  • 在哪里买空间做网站郑州网站zhi zuo
  • 医院网站建设 利法拉网络下花园区住房和城乡建设局网站
  • html5网站建设基本流程图宣传式网站
  • vR网站建设程序建站案例
  • 网站的付款链接怎么做的财经直播网站建设
  • 做菠菜网站多少钱中国电子商务网站建设
  • 网站织梦模板天津网站建设找哪家
  • 营销型网站建设口碑好主机安装wordpress
  • 猪八戒设计网站如何做兼职嘉定论坛网站建设
  • 徐州英文网站优化赣州建设监督网站
  • 佰牛深圳网站建设嘉兴网站快速排名优化
  • 四川省住房和城乡建设厅官网查询网站建设优化推广哈尔滨
  • 免费房屋建设图纸网站有哪些whois哪个网站好
  • 郑州网站公司哪家好自学设计的网站
  • 綦江建设银行网站如何网络营销
  • 门户网站整改报告土木英才网招聘信息
  • wordpress是哪家公司的建站程序敲代码做网站多少钱
  • 怎么在百度建设网站南阳网站推广公司
  • 网站策划就业前景河南移动官网网站建设
  • 铺面怎样做放上网站软件下载网站如何履行安全管理义务确保提供的软件
  • 网站服务器做哪些安全措施网站建设公司厦门
  • 做网站哪家公司比较好而且不贵36kr wordpress
  • 直播型网站开发东营网站建设策划内容
  • 大冶专业建站公司wordpress比特币插件
  • 长沙做网站优化长沙专门做网站公司有哪些
  • 网站页尾版权国外做科研的网站
  • 松北区建设局网站网络网站建设价格