iphone - ProgressDialog equivalent for iOS -
i'm starting development ios using xamarin.ios , want know if there progressdialog of android equivalent in ios?
i think,
https://components.xamarin.com/view/mbprogresshud/
is best option. can find information here
https://components.xamarin.com/gettingstarted/mbprogresshud
edit 1
here static class written me. hope you
using coregraphics; using mbprogresshud; using system; using system.collections.generic; using system.text; using uikit; namespace candycaneclub.ios.helper { /* generic helper class show , hide overlay running processes on application */ public class overlayhelper { public static mtmbprogresshud overlay; //initialize overlay string message show , view on suppose show public static mtmbprogresshud initoverlay(string message, uiview view) { overlay = new mtmbprogresshud(view) { labeltext = message, removefromsuperviewonhide = true }; overlay.alpha = 0.75f; view.addsubview(overlay); overlay.show(animated: true); return overlay; } //hide overlay public static void hideoverlay() { if(overlay != null) overlay.hide(animated: true, delay: 2); } } }
Comments
Post a Comment