摘要: 新的方式:- (IBAction)textFieldDidBeginEditing:(UITextField *)textField { activeText = textField; [self slideFrame:YES];}- (IBAction)textFieldDidEndEditing:(UITextField *)textField { activeText = nil; [self slideFrame:NO];}-(void) slideFrame:(BOOL) up{ int movementDistance = 0; // twea... 阅读全文
posted @ 2012-02-14 11:22 凡娃软件 阅读(1467) 评论(3) 推荐(0) 编辑
摘要: txtUser.borderStyle=UITextBorderStyleRoundedRect; 阅读全文
posted @ 2012-02-13 18:38 凡娃软件 阅读(845) 评论(0) 推荐(0) 编辑
摘要: UIWebView* web=[[UIWebViewalloc]initWithFrame:CGRectMake(0,0,320,460)];NSURL*url =[NSURLURLWithString:@"http://www.fanwa.net"]; NSURLRequest*request =[NSURLRequestrequestWithURL:url]; [webloadRequest:request];[self.viewaddSubview:web]; 阅读全文
posted @ 2012-02-13 17:46 凡娃软件 阅读(331) 评论(0) 推荐(0) 编辑
摘要: //添加uinav上的按钮UIBarButtonItem* rbutton=[[UIBarButtonItemalloc] initWithTitle:@"登录"style:UIBarButtonItemStyleDonetarget:selfaction:@selector(btnLogin)];self.navigationItem.rightBarButtonItem=rbutton;UIBarButtonItem* lbutton=[[UIBarButtonItemalloc] initWithTitle:@"退出"style:UIBarButt 阅读全文
posted @ 2012-02-13 17:43 凡娃软件 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 1.在AppDelegate.m实现的事件代码,用UINavigationController来进行页面之间的切换- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions{ self.window=[[UIWindowalloc]initWithFrame:[[UIScreenmainScreen]bounds]]; self.window.backgroundColor=[UIColorwhiteColor]; rootView* r=[ 阅读全文
posted @ 2012-02-13 17:28 凡娃软件 阅读(629) 评论(0) 推荐(0) 编辑