惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
S
Security @ Cisco Blogs
V
Visual Studio Blog
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
The Cloudflare Blog
云风的 BLOG
云风的 BLOG
小众软件
小众软件
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
爱范儿
爱范儿
B
Blog RSS Feed
Recorded Future
Recorded Future
The GitHub Blog
The GitHub Blog
宝玉的分享
宝玉的分享
博客园 - 司徒正美
U
Unit 42
G
Google Developers Blog
博客园 - Franky
阮一峰的网络日志
阮一峰的网络日志
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
博客园 - 【当耐特】
腾讯CDC
博客园 - 聂微东
IT之家
IT之家
Martin Fowler
Martin Fowler
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Recent Announcements
Recent Announcements
The Register - Security
The Register - Security
PCI Perspectives
PCI Perspectives
C
Check Point Blog
AI
AI
Webroot Blog
Webroot Blog
I
Intezer
博客园 - 三生石上(FineUI控件)
Google DeepMind News
Google DeepMind News
L
LangChain Blog
C
Cybersecurity and Infrastructure Security Agency CISA
S
Schneier on Security
C
CERT Recently Published Vulnerability Notes
Forbes - Security
Forbes - Security
S
Secure Thoughts
Y
Y Combinator Blog
Google Online Security Blog
Google Online Security Blog
H
Heimdal Security Blog
有赞技术团队
有赞技术团队
L
Lohrmann on Cybersecurity

博客园 - Bruce Lee

Android的界面设计规范-7 Android的界面设计规范-6 Android的界面设计规范-5 Android的界面设计规范-4 Android的界面设计规范-3 Android的界面设计规范-2 Android的界面设计规范-1 Monotouch 移动位于键盘下的内容,自动滚动被键盘遮住的内容 RESTful Web Services,客户端Silverlight提交POST数据报错 Monotouch Copy item from album(从相册拷贝文件出来) Monotouch Save Image To Application(保存相册图片到你的应用程序) Monotouch中使用UINavigationController Monotouch 项目选择Storyborads还是XIBs Montouch 定义一个定制的 View Control类 Monotouch 视图管理周期 Montouch多视图的创建与销毁 Monotouch在IPAD与IPhone使用UIImagePickerController的图片选择不同的代码 Montouch 增加图片到模拟器(Simulator)的相册中 Monotouch Table View 里面动态增加Table View Cell Switch 触发Switch事件 程序崩溃
Monotouch 常用例子代码
Bruce Lee · 2012-09-28 · via 博客园 - Bruce Lee

程序如何做日志

   1:  var myString = "MyString";
   2:  var myFloat = 4.56f;
   3:  var myInt = 5;
   4:  Console.WriteLine(String.Format("log: {0}", myString)); 
   5:  Console.WriteLine(String.Format("log: {0}", myFloat)); 
   6:  Console.WriteLine(String.Format("log: {0}", myInt));

这些状态说明会显示在MonoDevelop的控制台窗口和Xcode的管理器控制台窗口中。

显示图像
不使用UI生成器显示图像在屏幕上的任何位置,您可以使用其他类型的视图。

   1:  var imageRect = new RectangleF(0f, 0f, 320f, 109f); 
   2:  using (var myImage = new UIImageView(imageRect))
   3:  { 
   4:  myImage.Image = UIImage.FromFile("myImage.png");
   5:  myImage.Opaque = true;
   6:  view.AddSubview(myImage);
   7:  }

浏览器视图
基本的UIWebView使用.

   1:  var webRect = new RectangleF(0f, 0f, 320f, 460f);
   2:  using (var webView = new UIWebView(webRect))
   3:  {
   4:  webView.BackgroundColor = UIColor.White;
   5:  var urlAddress = "http://www.google.com";
   6:   
   7:  var url = new NSUrl(urlAddress);
   8:  var urlRequest = new NSUrlRequest(url);
   9:  webView.LoadRequest(urlRequest);
  10:  view.AddSubview(webView);
  11:  }

显示网络指示器

   1:  var app = UIApplication.SharedApplication;
   2:  app.NetworkActivityIndicatorVisible = true; 

动画:走马灯图片
显示一系列连续的图像。图像在工程中药设置为“内容”。

   1:  List<UIImage> myImages = new List<UIImage>();
   2:  myImages.Add(UIImage.FromFile("myImage1.png"));
   3:  myImages.Add(UIImage.FromFile("myImage2.png"));
   4:  myImages.Add(UIImage.FromFile("myImage3.png"));
   5:  myImages.Add(UIImage.FromFile("myImage4.png"));
   6:   
   7:  var myAnimatedView = new UIImageView(view.Bounds);
   8:  myAnimatedView.AnimationImages = myImages.ToArray();
   9:  myAnimatedView.AnimationDuration = 1.75; // Seconds
  10:  myAnimatedView.AnimationRepeatCount = 0; // 0 = Loops Forever
  11:  myAnimatedView.StartAnimating();
  12:  view.AddSubview(myAnimatedView);

不断丰富中……

作者:Bruce Lee
出处:http://www.cnblogs.com/BruceLee521
本博原创文章版权归博客园和本人共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出作者名称和原文连接,否则保留追究法律责任的权利。