
Xamarin ios
拼了命的追赶
这个作者很懒,什么都没留下…
展开
-
Mvvmcross Plugins - Cirrious.MvvmCross.Plugins.Messenger
Build Model:public class LoginMessage : MvxMessage { public LoginMessage(object sender, string userName) : base(sender) { UserName = user翻译 2015-09-23 17:46:57 · 584 阅读 · 0 评论 -
UIStatusBarStyle PreferredStatusBarStyle does not work
down voteI discovered that if your ViewController is inside a navigationController then the navigationController’s navigationBar.barStyle determines the statusBarStyle.Setting your nav翻译 2016-01-26 15:08:41 · 987 阅读 · 0 评论 -
Connect your app to Parse
Connect your app to ParseBefore continuing, select your Parse app from the menu at the right. These steps are for your "Sonicboxx" app.Within AppDelegate.cs, specify your application id转载 2016-01-28 15:04:41 · 337 阅读 · 0 评论 -
Removing all subviews from a view
for(UIView*viewinself.subviews){[view removeFromSuperview];}原创 2016-03-01 15:53:02 · 245 阅读 · 0 评论 -
Xamarin.ios+MvvmCross+ Flyout Menu
add Flyout NavigationMvvmCross – FlyoutNavigation, Hamburger Menu, Sliding Menu for Android and iOSMenuViewusing System;using System.Linq;using Foundation;using UIKit;using Cirrious.MvvmCross.Touch.Views;using FlyoutNavigation;using MonoTou翻译 2015-08-17 16:27:41 · 775 阅读 · 0 评论 -
Convert UIImage to Stream
Stream s = image.AsPNG ().AsStream ();原创 2016-02-02 17:33:16 · 620 阅读 · 0 评论 -
PictureChooser
var task = Mvx.ResolveIMvxPictureChooserTask>();task.ChoosePictureFromLibrary(500, 90, stream => { // use the stream原创 2016-02-02 17:37:01 · 236 阅读 · 0 评论 -
Convert Stream to UIImage
public class StreamTypeToImageValueConverter: MvxValueConverter { protected override UIImage Convert(Stream value, Type targetType, object parameter, CultureInfo culture) {原创 2016-02-02 17:39:03 · 523 阅读 · 0 评论 -
Add more Button to Nav Bar xamarin.ios
this.Title = "Inspection";this.NavigationController.NavigationBar.TitleTextAttributes = new UIStringAttributes (){ ForegroundColor=UIColor.White};this.NavigationController.NavigationBar.Tint原创 2016-03-04 10:31:06 · 387 阅读 · 0 评论 -
Struggling trying to get cookie out of response with HttpClient in .net 4.5
public static async Task Login(string UserName,string Password) { var model = new LoginModel (); try { var url = string.Format("{0}&requestType={1}&requestAction={2}&Email={3}&Pas原创 2016-02-18 16:59:00 · 685 阅读 · 0 评论 -
Xamarin iOS UIAlertView
UIAlertView messageBox = new UIAlertView("XFINIUM.PDF", "Sample completed with success", null, "Close", "View PDF"); messageBox.Clicked += HandleClicked; messageB原创 2015-08-31 14:53:55 · 649 阅读 · 0 评论 -
Xamarin iOS+MvvmCross TableCell add Button
protected override UITableViewCell GetOrCreateCellFor (UITableView tableView, NSIndexPath indexPath, object item) { var cell= base.GetOrCreateCellFor (tableView, indexPath, item)原创 2015-08-28 19:24:44 · 495 阅读 · 0 评论 -
how can handle push notification when my app is not running
UIApplicationLaunchOptionsRemoteNotificationKey翻译 2015-10-30 15:19:26 · 444 阅读 · 0 评论 -
xamarin ios UIPickerView
private void SetupPayoutsPicker() { Liststring> payouts = new Liststring> (); for (int i = 1; i 201; i++) { payouts.Add (i.ToString ());原创 2015-09-21 12:24:00 · 741 阅读 · 0 评论 -
Xamarin IOS SearchBar 文本框设置
foreach (var subView in searchBar.Subviews) { foreach (var field in subView.Subviews) {原创 2015-08-28 19:21:00 · 474 阅读 · 0 评论 -
SQLite xamarin iOS 本地数据库
using System;using Cirrious.MvvmCross.Plugins.Sqlite;using System.Linq;namespace MobilePortalXApp.PCL{ public class DataService:IDataService { private readonly ISQLiteConn转载 2015-08-17 17:17:53 · 539 阅读 · 0 评论 -
xamarin ios KeyBoardHide
UITapGestureRecognizer tapGestureRecongnizer = new UITapGestureRecognizer (); tapGestureRecongnizer.CancelsTouchesInView = false; tapGestureRecongnizer.AddTarget (() => {原创 2015-09-21 12:16:56 · 769 阅读 · 0 评论 -
UIScrollView and Autolayout
https://www.youtube.com/watch?v=UnQsFlMGDsINeed VPN转载 2015-09-21 17:15:03 · 241 阅读 · 0 评论 -
Change Xamarin iOS navigation and status bar color
public override void ViewDidAppear(bool animated){ NavigationController.NavigationBar.BackgroundColor = UIColor.Yellow;} If you want to change the navigation bar color throughout yo原创 2015-09-21 17:11:22 · 991 阅读 · 0 评论 -
xamarin ios read txt file
Add the file to your Xamarin.iOS project and ensure the Build Action is set to BundleResource. The sample code has a file called ReadMe.txt in the TestData folder.Load the file’s contents into原创 2015-09-07 14:24:29 · 452 阅读 · 0 评论 -
xamarin ios XibFree LinearLayout
public override void LoadView(){ // This is a simple vertical LinearLayout. ViewGroups are not implemented as UIViews - they're simply scaffolding for // the layout of the contained Native转载 2015-08-28 19:14:43 · 534 阅读 · 0 评论 -
Parse query on pointer column
Parse query on pointer column翻译 2015-09-30 16:44:35 · 660 阅读 · 0 评论 -
Add Text To Image xamarin.ios
private UIImage TextToImage(string drawText, UIImage image,CGRect fream) { UIGraphics.BeginImageContext(new CGSize(image.Size.Width, image.Size.Height)); var imageCg原创 2016-03-11 11:53:31 · 471 阅读 · 0 评论