Hello World, Dynamic Label
Step 1: Create Xamarin ios App "HelloWorld"
Step 2: Modify the ViewController.cs
ViewDidLoad(){
base.ViewDidLoad();
UILabel helloLabel;
helloLabel = new UILabel{
Frame = new CoreGraphics.CGRect(50, 50, 120, 40),
Text = "Hello World"
}
View.AddSubView(helloLabel);
}
Step 1: Create Xamarin ios App "HelloWorld"
Step 2: Modify the ViewController.cs
ViewDidLoad(){
base.ViewDidLoad();
UILabel helloLabel;
helloLabel = new UILabel{
Frame = new CoreGraphics.CGRect(50, 50, 120, 40),
Text = "Hello World"
}
View.AddSubView(helloLabel);
}
Comments
Post a Comment