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

像网站分类一样的表格图怎么做企业网页模板图片

像网站分类一样的表格图怎么做,企业网页模板图片,dw做网站模板,注册公司找黄牛一般多少钱这里介绍一下网友开源的MBProgressHUD类#xff0c;实现等待框#xff0c; 一、网上下载 MBProgessHUD 类文件#xff0c;直接导入到工程即可 二、示例分析 在我的工程中示例如下#xff1a; 1#xff09;在ShowImageViewController.h头文件代码如下#xff1a; #import… 这里介绍一下网友开源的MBProgressHUD类实现等待框 一、网上下载  MBProgessHUD 类文件直接导入到工程即可 二、示例分析 在我的工程中示例如下 1在ShowImageViewController.h头文件代码如下 #import UIKit/UIKit.h #import MBProgressHUD.h interface ShowImageViewController : UIViewController MBProgressHUDDelegate{     NSString         *_picUrlString;     UIImageView      *_imageView;     MBProgressHUD    *_progressHUD;  } property (nonatomic, copy) NSString           *picUrlString; property (nonatomic, retain) IBOutlet         UIImageView *imageView; property (nonatomic, retain) MBProgressHUD    *progressHUD; //请求图片资源 -(void)imageResourceRequest; //显示图片信息 -(void)displayImage:(UIImage *)image; - (IBAction)dismissModealView:(id)sender; -(void)removeModalView; end 2在ShowImageViewController.m实现文件代码如下 #import ShowImageViewController.h #import QuartzCore/QuartzCore.h implementation ShowImageViewController synthesize picUrlString _picUrlString; synthesize imageView _imageView; synthesize progressHUD _progressHUD; - (void)viewDidLoad {     [super viewDidLoad];     // Do any additional setup after loading the view from its nib.     self.view.backgroundColor [UIColor grayColor];     self.view.alpha 0.8;          //设置图片为圆角     self.imageView.backgroundColor [UIColor clearColor];     self.imageView.layer.borderColor [UIColor lightGrayColor].CGColor;     self.imageView.layer.borderWidth 5.0;     self.imageView.layer.masksToBounds YES;      self.imageView.layer.cornerRadius 10.0;  } -(void)viewWillAppear:(BOOL)animated {     [super viewWillAppear:animated];     //当进入视图时重新设置imageView     [self.imageView setImage:nil];     [self.imageView setFrame:CGRectMake(160, 200, 0, 0)];     //显示加载等待框     self.progressHUD [[MBProgressHUD alloc] initWithView:self.view];     [self.view addSubview:self.progressHUD];     [self.view bringSubviewToFront:self.progressHUD];     self.progressHUD.delegate self;     self.progressHUD.labelText 加载中...;     [self.progressHUD show:YES];          //开启线程请求图片资源     [NSThread detachNewThreadSelector:selector(imageResourceRequest) toTarget:self withObject:nil]; } //请求图片资源 -(void)imageResourceRequest {     NSAutoreleasePool   *pool [[NSAutoreleasePool alloc] init];     //根据网络数据获得到image资源     NSData  *data [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:self.picUrlString]];     UIImage *image [[UIImage alloc] initWithData:data];     [data release];     //回到主线程显示图片信息     [self performSelectorOnMainThread:selector(displayImage:) withObject:image waitUntilDone:NO];     [image release];          [pool release]; } //显示图片信息 -(void)displayImage:(UIImage *)image {     //若self.progressHUD为真则将self.progressHUD移除设为nil     if (self.progressHUD){         [self.progressHUD removeFromSuperview];         [self.progressHUD release];         self.progressHUD nil;     }          //图片慢慢放大动画效果     [self.imageView setImage:image];     [UIView beginAnimations:nil context:nil];     [UIView setAnimationDuration:0.5];     [self.imageView setFrame:CGRectMake(40, 100, 240, 160)];     [UIView commitAnimations];      } - (void)viewDidUnload {     [self setImageView:nil];     [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); } - (IBAction)dismissModealView:(id)sender {        //设置定时器当动画结束时子视图从父视图中移除     [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:selector(removeModalView) userInfo:nil repeats:NO];          [UIView beginAnimations:nil context:nil];     [UIView setAnimationDuration:0.5];     [self.imageView setFrame:CGRectMake(160, 200, 0, 0)];     [UIView commitAnimations];      } -(void)removeModalView {     [self.view removeFromSuperview]; } #pragma mark - #pragma mark MBProgressHUDDelegate methods - (void)hudWasHidden:(MBProgressHUD *)hud {     NSLog(Hud: %, hud);     // Remove HUD from screen when the HUD was hidded     [self.progressHUD removeFromSuperview];     [self.progressHUD release];     self.progressHUD nil; } - (void)dealloc {     [_picUrlString release];     [_imageView release];     [super dealloc]; } end 三、效果展示 四、总结 利用MBProgressHUD实现加载等待框视觉效果大大提高 转载于:https://www.cnblogs.com/snake-hand/archive/2012/08/13/2636219.html
http://www.yutouwan.com/news/428766/

相关文章:

  • 网站建设采用的技术网店html模板
  • 江西网站设计电话现在做互联网好做吗
  • 做电子请柬用什么网站广州网络推广服务
  • 自建网站营销是什么意思青岛专业网站制作设计
  • 对网站建设的看法2021年关键词有哪些
  • wordpress好用的富文本编辑器有利于seo优化的是
  • 做a手机视频在线观看网站seo搜索引擎优化是利用
  • 北仑建设局质监站网站小学生入门编程用什么软件
  • 网站建立教学博客为什么用wordpress
  • 中山网站搜索排名申请免费空间
  • 国内做家具外贸的网站有哪些企业建网站分类信息网
  • 网站要注册为什么时间轴 网站模板
  • 网站建设免费按词收费企业网站的建设内容
  • 常平小学网站建设wordpress营销型主题
  • 网站建设的风险识别国外做袜靴的网站
  • 博物馆 网站 建设联科网站建设
  • 网站配色网交通局网站建设方案
  • 高权重网站代做排名如何申请网站
  • 思茅区建设局网站房产资讯的网站怎么做
  • 培训网站系统建设网站建设电话销售术语
  • 网站怎么优化排名的方法常用的网络推广方法
  • 咸阳商城网站开发设计陕西住房建设厅官方网站
  • 南阳市做网站手机h5免费模板网站
  • 网站 要强化内容建设在线编写html网页代码
  • 酒店如何做团购网站app软件开发工具包
  • 什么是网站接入商网站备案如何申请
  • 成都建设学校网站为何建设银行网站无法登陆
  • 网站制作厂家软件项目管理是做什么的
  • 网站ui界面设计模板清除网站黑链
  • 怎么给网站加友情链接网站建设公司哪家好 要上磐石网络