摘要: - (IBAction)loadData:(id)sender { NSURL* url = [NSURL URLWithString:@"http://162.105.65.251:8080/service/downloadusernote?user_name=weishouqiang"]; NSURLRequest* request = [[NSURLRequest alloc] initWithURL:url]; NSURLConnection* conn = [[NSURLConnection alloc] initWithRequest:request... 阅读全文
posted @ 2013-09-05 18:55 shouqiang Wei 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 新建一个single view 工程:关闭ARC , 在.xib视图文件上拖放一个UIImageView 两个UIButton ,一个UISlider ,布局如图。并为他们连线,UIImageView 和 UISlider 分别定义插座变量,两个UIButton 分别 连接两个Action next和previous ,在为 UISlider 连接一个Action 事件。再在.h 文件中声明两个实例变量。 NSInteger index ; NSMutableArray* arrayPic ; 一个用来记录当前图片的index,一个用来做图片的容器,用UISlider 来控制图片的透明度 (a 阅读全文
posted @ 2013-09-05 17:28 shouqiang Wei 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 第一步:新建一个Single View工程:第二步:新建好工程,关闭arc。第三步:拖放一个Text Field 一个UIButton 和一个 UIWebView . Text Field 的title 属性设置为 http:// 。UIButton 的title属性设置为 go 。布局如图:第四步:为Text Field 和UIWebView 连线,插座变量分别命名为 textUrl 和 webRequest。为UIButton 连线.连接一个action事件(- (IBAction)btnGo:(id)sender;)然后在(- (IBAction)btnGo:(id)sender;里面添 阅读全文
posted @ 2013-09-05 10:53 shouqiang Wei 阅读(1105) 评论(1) 推荐(1) 编辑