iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
How do we enable AutoScrollToVisible property for ALL platforms (iOS, Android, WinRT, WinPhone) without Crosslight getting a "Object reference not set to an instance of an object" error? Please advise.
Thanks!
Hello Jimmy,
AutoScrollToVisible is exclusively only for IOS platform due to built-in feature not exist inside IOS (Apple decide not to implement that feature for design flexibility & dynamic reasons), for other Platform that feature was already built-in and automatically applied so you don't need to use AutoScrollToVisible. You can read more about IOS & AutoScrollToVisible here.
If you want i can check your AutoScrollToVisible but i need you tell me your AutoScrollToVisible implementation code or you can attach the error file
But normally you only need to use this code inside your View Controller in IOS folder
public override bool AutoScrollToVisible { get { return true; } }
Hope that answer your question :)Best Regards,Arief
public UserLoginViewController() : base("UserLoginView", null) { } public override bool HideKeyboardOnTap { get { return true; } } public override bool AutoScrollToVisible { get { return true; } } public override bool ShouldAutorotate() { return false; } protected override void InitializeView() { base.InitializeView(); // Support pre-iPhone5 display // Get the control instance from the view controller. var p_BlurryView = this.View.ViewWithTag(101); var p_LogoView = this.View.ViewWithTag(102); // Support pre-iPhone5 display if (UIScreen.MainScreen.Bounds.Height <= 480) { p_LogoView.Frame = new CGRect( p_LogoView.Frame.Left + 10, p_LogoView.Frame.Top, p_LogoView.Frame.Width - 20, p_LogoView.Frame.Height - 35); p_BlurryView.Frame = new CGRect( p_BlurryView.Frame.Left, p_BlurryView.Frame.Top - 40, p_BlurryView.Frame.Width, p_BlurryView.Frame.Height); } // Needed in iOS 7.1 p_BlurryView.SetNeedsDisplay(); p_LogoView.SetNeedsDisplay(); }
Hello Jimmy,I'm unsuccessfully replicate your problem, i got no error except "Object reference not set to an instance of an object" that caused by var p_LogoView giving me a null value but AutoScrollToVisible work normally I'm using MVVM samples and i insert your code inside BindingProviderViewController.cs in view controller folder i attach the file in this message, could you replicate your problem using that samples and send it to me?
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname