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

企业网站建设的上市公司电商运营seo

企业网站建设的上市公司,电商运营seo,请小组讨论一个完整的网页设计流程,石家庄楼盘最新消息iOS开发UI篇—九宫格坐标计算 一、要求 完成下面的布局 二、分析 寻找左边的规律,每一个uiview的x坐标和y坐标。 三、实现思路 (1)明确每一块用得是什么view (2)明确每个view之间的父子关系,每个视图都只有一个父视图,拥有很多的子视图。 (3)…

iOS开发UI篇—九宫格坐标计算

一、要求

完成下面的布局

 

二、分析

寻找左边的规律,每一个uiview的x坐标和y坐标。

三、实现思路

 

(1)明确每一块用得是什么view

(2)明确每个view之间的父子关系,每个视图都只有一个父视图,拥有很多的子视图。

(3)可以先尝试逐个的添加格子,最后考虑使用for循环,完成所有uiview的创建

(4)加载app数据,根据数据长度创建对应个数的格子

(5)添加格子内部的子控件

(6)给内部的子控件装配数据

四、代码示例

复制代码
  1 //2 //  YYViewController.m3 //  九宫格练习4 //5 //  Created by 孔医己 on 14-5-22.6 //  Copyright (c) 2014年 itcast. All rights reserved.7 //8 9 #import "YYViewController.h"10 11 @interface YYViewController ()12 @property(nonatomic,strong)NSArray *apps;13 @end14 15 @implementation YYViewController16 17 18 //1.加载数据19 - (NSArray *)apps20 {21     if (!_apps) {22         NSString *path=[[NSBundle mainBundle]pathForResource:@"app.plist" ofType:nil];23         _apps=[NSArray arrayWithContentsOfFile:path];24     }25     return _apps;26 }27 28 - (void)viewDidLoad29 {30     [super viewDidLoad];31     NSLog(@"%d",self.apps.count);32     33     //2.完成布局设计34     35     //三列36     int totalloc=3;37     CGFloat appvieww=80;38     CGFloat appviewh=90;39     40     CGFloat margin=(self.view.frame.size.width-totalloc*appvieww)/(totalloc+1);41     int count=self.apps.count;42     for (int i=0; i<count; i++) {43         int row=i/totalloc;//行号44         //1/3=0,2/3=0,3/3=1;45         int loc=i%totalloc;//列号46         47         CGFloat appviewx=margin+(margin+appvieww)*loc;48         CGFloat appviewy=margin+(margin+appviewh)*row;49         50         51         //创建uiview控件52         UIView *appview=[[UIView alloc]initWithFrame:CGRectMake(appviewx, appviewy, appvieww, appviewh)];53         //[appview setBackgroundColor:[UIColor purpleColor]];54         [self.view addSubview:appview];55         56         57         //创建uiview控件中的子视图58         UIImageView *appimageview=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 80, 50)];59         UIImage *appimage=[UIImage imageNamed:self.apps[i][@"icon"]];60         appimageview.image=appimage;61         [appimageview setContentMode:UIViewContentModeScaleAspectFit];62        // NSLog(@"%@",self.apps[i][@"icon"]);63         [appview addSubview:appimageview];64         65         //创建文本标签66         UILabel *applable=[[UILabel alloc]initWithFrame:CGRectMake(0, 50, 80, 20)];67         [applable setText:self.apps[i][@"name"]];68         [applable setTextAlignment:NSTextAlignmentCenter];69         [applable setFont:[UIFont systemFontOfSize:12.0]];70         [appview addSubview:applable];71         72         //创建按钮73         UIButton *appbtn=[UIButton buttonWithType:UIButtonTypeCustom];74         appbtn.frame= CGRectMake(10, 70, 60, 20);75         [appbtn setBackgroundImage:[UIImage imageNamed:@"buttongreen"] forState:UIControlStateNormal];76         [appbtn setBackgroundImage:[UIImage imageNamed:@"buttongreen_highlighted"] forState:UIControlStateHighlighted];77         [appbtn setTitle:@"下载" forState:UIControlStateNormal];78         appbtn.titleLabel.font=[UIFont systemFontOfSize:12.0];79         [appview addSubview:appbtn];80         81         [appbtn addTarget:self action:@selector(click) forControlEvents:UIControlEventTouchUpInside];82     }83 84 }85 86 -(void)click87 {88     //动画标签89     UILabel *animalab=[[UILabel alloc]initWithFrame:CGRectMake(self.view.center.x-100, self.view.center.y+20, 200, 40)];90     [animalab setText:@"下载成功"];91     animalab.font=[UIFont systemFontOfSize:12.0];92     [animalab setBackgroundColor:[UIColor brownColor]];93     [animalab setAlpha:0];94     [self.view addSubview:animalab];95     96 //    [UIView beginAnimations:Nil context:Nil];97 //    [animalab setAlpha:1];98 //    [UIView setAnimationDuration:4.0];99 //    [UIView commitAnimations];
100     
101     //执行完之后,还得把这给删除了,推荐使用block动画
102     
103     [UIView animateWithDuration:4.0 animations:^{
104     [animalab setAlpha:1];
105     } completion:^(BOOL finished) {
106         //[self.view re];
107     }];
108 }
109 
110 - (void)didReceiveMemoryWarning
111 {
112     [super didReceiveMemoryWarning];
113 }
114 
115 @end
复制代码

执行效果:

转载于:https://www.cnblogs.com/LiLihongqiang/p/5722512.html

http://www.lbrq.cn/news/2488807.html

相关文章:

  • 互联网有多少网站济南网站推广
  • wordpress投稿者用户权限seo怎么优化步骤
  • 外贸公司起名seo优化
  • 遵义做网站哪家好哪家好seo优化推广技巧
  • 网站是否必须做认证山西seo排名厂家
  • 国家企业信用网企业查询标题关键词优化报价
  • 枣庄高端网站定制厦门关键词排名提升
  • 如何利用网站做产品推广旺道网站排名优化
  • 厦门网站制作seo流量的提升的软件
  • 企业网站建设百度浏览器下载
  • 电商代运营公司怎么样长沙百度网站优化
  • 网站范例自媒体十大平台
  • 萧山做网站设计抖音优化公司
  • 网站关于我们怎么做会计培训班要多少钱一般要学多久
  • 免费自己做网站手机网络推广seo是什么
  • 上海网安网站建设网站建设定制
  • 北京公司网站制作微信软文范例100字
  • 网站ftp根目录电商运营去哪里学比较好
  • 网站CDN怎么做防攻击吗电子商务网站开发
  • 管理登陆网站开发软件谷歌网站推广
  • 狗和女主人做爰网站百度标注平台怎么加入
  • 设计师互动平台完善的seo网站
  • wordpress和域名seo关键字优化软件
  • 响应式网站应该怎么做麒麟seo软件
  • 做网站去哪个公司什么是seo文章
  • 那些免费网站做推广比较好seo推广营销公司
  • 网站的域名在哪里看b站24小时自助下单平台网站
  • 为公司做网站要做什么准备线上推广策划方案范文
  • 做网站表格单边框标记长春做网站推广的公司
  • 如何做流量充值网站百度指数分析
  • 【I】题目解析
  • 设备独立性软件-高速缓存与缓冲区
  • CSP2025模拟赛2(2025.7.26)
  • 大话数据结构之 < 栈>(C语言)
  • CT、IT、ICT 和 DICT区别
  • 适用于5V/12V低输入的负载点电源应用20V/6A单片式双通道同步降压调整器