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

做国外零售做什么网站黑龙江开放网站备案

做国外零售做什么网站,黑龙江开放网站备案,商家商城小程序,廊坊做网站多少钱本节主要讲述在苹果环境中使用monodevelop开发ipad的一个实例#xff0c;具体操作如下 1、新建项目 选择monotouch--ipad--Empty project 命名为iPad01 2、添加新文件#xff0c;选择monotouch--ipad view#xff0c;命名为showView#xff0c;这样会在项目中多出来三个文件…     本节主要讲述在苹果环境中使用monodevelop开发ipad的一个实例具体操作如下     1、新建项目 选择monotouch--ipad--Empty project 命名为iPad01     2、添加新文件选择monotouch--ipad view命名为showView这样会在项目中多出来三个文件。     3、在AppDelegate.cs中添加如下代码以在运行后初始化运行界面为ShowView      1 UIWindow window;2 showViews shows;3 4 public override bool FinishedLaunching(UIApplication app, NSDictionary options) {5 // create a new window instance based on the screen size6 window new UIWindow(UIScreen.MainScreen.Bounds);7 shows new showViews();8 window.RootViewController shows;9 // If you have defined a view, add it here: 10 // window.AddSubview (navigationController.View); 11 12 // make the window visible 13 window.MakeKeyAndVisible(); 14 15 return true; 16 }        4、添加新类MyViewController.cs此类继承UIViewController重写ipad的自动旋转行为代码如下        using MonoTouch.UIKit;namespace ipad01 {public class MyViewController:UIViewController {public MyViewController() {}public override bool ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation toInterfaceOrientation) {return true;}} }          5、在showViews.cs中添加如下代码 1 public override void ViewDidLoad() {2 base.ViewDidLoad();3 4 var text new UITextView();5 text.Text gwtGolden Gate Bridge,\nSan Francisco;6 text.Font UIFont.FromName(Helvetica, 36f);7 text.Frame new System.Drawing.RectangleF(200, 40, 400, 100);8 text.AutoresizingMask UIViewAutoresizing.FlexibleLeftMargin | UIViewAutoresizing.FlexibleTopMargin |9 UIViewAutoresizing.FlexibleRightMargin | UIViewAutoresizing.FlexibleBottomMargin; 10 text.ScrollEnabled false; 11 text.Editable false; 12 UIImage image UIImage.FromFile(GoldenGate.jpg); 13 UIImageView imageView new UIImageView(image); 14 var customScrollView new UIScrollView(this.View.Bounds); 15 customScrollView.AutoresizingMask UIViewAutoresizing.FlexibleHeight 16 | UIViewAutoresizing.FlexibleWidth; 17 customScrollView.AddSubview(imageView); 18 19 20 customScrollView.PagingEnabled false; // freeform scrolling 21 customScrollView.ContentSize imageView.Frame.Size; 22 customScrollView.MaximumZoomScale 4f; 23 customScrollView.MinimumZoomScale 0.25f; 24 customScrollView.Bounces false; 25 customScrollView.BouncesZoom false; 26 customScrollView.IndicatorStyle UIScrollViewIndicatorStyle.White; 27 customScrollView.ViewForZoomingInScrollView delegate (UIScrollView sender) { 28 return imageView; 29 }; 30 customScrollView.ContentOffset new System.Drawing.PointF(250, 20); 31 customScrollView.ZoomScale 1.3f; // 32 var customViewController new MyViewController(); 33 customViewController.Add(customScrollView); 34 customViewController.Add(text); 35 this.View.Add(customViewController.View);}         7ok将要使用的图像文件添入到项目并保证其右键Build Action属性为Content。程序运行效果图如下 转载于:https://www.cnblogs.com/flowwind/archive/2012/10/19/2731327.html
http://www.zqtcl.cn/news/285277/

相关文章:

  • 电脑版 做网站尺寸怎么查找网站后台
  • 南京网站建设公司国际新闻头条最新消息
  • 类似于wordpress的网站吗做网站前端难吗
  • 做外贸网站维护费是多少小程序源码提取
  • 设计网站作品欣赏有那些网站注册商标官网入口
  • 装修网站怎么做的外贸谷歌推广怎么样
  • 建设部网站监理资质换证it外包 北京
  • flash网站制作公司杭州便宜的手机网站建设
  • 有ip地址如何做网站苏州门户网站建设
  • 菏泽北京网站建设邯郸做移动网站费用
  • 国外的平面设计网站施工企业介绍
  • 做网站市场价织梦模板自适应
  • xx单位网站建设方案设计精美的网站
  • 唐山市政建设总公司网站工商营业执照查询官网
  • 深圳建站模板建站网站介绍怎么写
  • 网站建设管理教程视频教程如何建一个电商平台
  • 深圳网络公司做网站wordpress怎么编辑网站
  • 淄博建站网络公司wordpress ldap外部登录认证
  • 南宁网站开发浏览器有哪几种
  • 石家庄哪里能制作网站网站301跳转
  • 网站建设报价浩森宇特wordpress怎样修改字体
  • 网站建设预估费用做品牌推广用什么网站
  • 网站建设风险评估西部数码 空间做2个网站
  • 专业购物网站建设wordpress the7不显示分类页
  • 移动应用开发网站建设网站时的故障分类
  • 网站动态静态软件项目管理案例教程第四版
  • 贵州萝岗seo整站优化鲜花店网站建设的总结
  • 下载做网站的软件建网站做站在
  • 无锡高端网站建设公司WordPress臃肿主题
  • 网站建设与运营财务预算seo下拉优化