Crosslight.iOS Improvements
In this release, Crosslight.iOS receives several nifty improvements that will allow you to create even more gorgeous iOS apps with Crosslight. Let's take a look at each one.
Introducing New Rating Bar
In this release, Crosslight adds a new rating bar UI that allows you to easily provide rating bar interface in your app. It's available for both iOS, Android, as well as a form builder widget. The new rating bar also supports fixed and precision rating for better visualization.
To use the RatingBar, simply drag the RatingBar control from the toolbox onto the ViewController designer surface.
Then, you can easily set the outlet and other various properties by clicking on the Properties panel on the right-hand side.
In your code, simply reference them as normal view outlets.
Code Block | ||
---|---|---|
| ||
using System;
using System.ComponentModel;
using CoreAnimation;
using CoreGraphics;
using Intersoft.Crosslight;
using Intersoft.Crosslight.iOS;
using PropertyIn.ViewModels;
using UIKit;
namespace PropertyIn.iOS
{
[Storyboard("MainStoryboard")]
[ImportBinding (typeof(DirectoryDetailBindingProvider))]
public partial class DirectoryDetailViewController : UIDetailViewController<DirectoryDetailViewModel>
{
#region Constructors
public DirectoryDetailViewController ()
: base ("DirectoryDetailViewController", null)
{
}
public DirectoryDetailViewController(IntPtr intPtr)
: base(intPtr)
{
}
#endregion
#region Properties
public override bool AutoFitContentSize
{
get { return true; }
}
#endregion
#region Methods
public override void ViewWillAppear (bool animated)
{
base.ViewWillAppear (animated);
this.InitializeStaticRatingBar ();
}
public void InitializeStaticRatingBar()
{
this.RatingBar1.FullStarImage = "null";
this.RatingBar1.HalfStarImage = "null";
this.RatingBar1.NoStarImage = "ff.png";
this.RatingBar1.Value = 4;
this.RatingBar2.FullStarImage = "null";
this.RatingBar2.HalfStarImage = "null";
this.RatingBar2.NoStarImage = "ff.png";
this.RatingBar2.Value = 3;
this.RatingBar3.FullStarImage = "null";
this.RatingBar3.HalfStarImage = "null";
this.RatingBar3.NoStarImage = "ff.png";
this.RatingBar3.Value = 2;
this.RatingBar4.FullStarImage = "null";
this.RatingBar4.HalfStarImage = "null";
this.RatingBar4.NoStarImage = "ff.png";
this.RatingBar4.Value = 1;
this.RatingBar5.FullStarImage = "null";
this.RatingBar5.HalfStarImage = "null";
this.RatingBar5.NoStarImage = "ff.png";
this.RatingBar5.Value = 0.1f;
}
#endregion
}
} |
UITabViewController Supports Child Controller Injection
Previously, you can only use list view in UITabViewController in a single full screen. Thanks to the new enhancement in Crosslight.iOS, UITabViewController now supports child controller injection, allowing you to use list view inside a child as you can see in the screenshot.
Code Block | ||
---|---|---|
| ||
using System;
using System.ComponentModel;
using CoreAnimation;
using CoreGraphics;
using Intersoft.Crosslight;
using Intersoft.Crosslight.iOS;
using PropertyIn.ViewModels;
using UIKit;
namespace PropertyIn.iOS
{
[Storyboard("MainStoryboard")]
[ImportBinding (typeof(DirectoryDetailBindingProvider))]
public partial class DirectoryDetailViewController : UIDetailViewController<DirectoryDetailViewModel>
{
#region Constructors
public DirectoryDetailViewController ()
: base ("DirectoryDetailViewController", null)
{
}
public DirectoryDetailViewController(IntPtr intPtr)
: base(intPtr)
{
}
#endregion
#region Properties
public override bool AutoFitContentSize
{
get { return true; }
}
ReviewListViewController ReviewListViewController { get; set; }
#endregion
#region Methods
protected override void InitializeView ()
{
base.InitializeView ();
// ViewController initialization codes goes here.
this.ReviewListViewController = new ReviewListViewController(this.ViewModel.ReviewListViewModel);
this.AddChildViewController(this.ReviewListViewController);
this.ReviewListViewController.TableView.Frame = new CoreGraphics.CGRect(0, 0, this.ReviewListViewController.TableView.Frame.Width, 160);
this.ReviewListLayout.AddSubview(this.ReviewListViewController.TableView);
var categoryListController = new BusinessCategoryListViewController(this.ViewModel.CategoryListViewModel);
this.AddChildViewController(categoryListController);
this.CategoryListLayout.AddSubview(categoryListController.TableView);
}
#endregion
}
} |
Introducing Animation Support in UIImageView
UIImageView now supports animation when loading an image asynchronously. The following video shows how the animation looks like when loading an image, it shows the watermark at first while loading the image with beautiful animation to be displayed afterwards.
Video | ||||||
---|---|---|---|---|---|---|
|
Crosslight.Android Improvements
Crosslight 5.2 marks the stabilized version of Crosslight Android with the following fixes issues:
JIRA | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
For more information about Crosslight Android Material, see Crosslight Android Material Development.
Enhancements and fixes in this release
This release includes the following enhancements and bug fixes:
JIRA | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Modern note |
---|
For more information about release band quality and how to obtain and apply updates, see Updating Crosslight. |
Related Topics
Content by Label | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|