Advertisement
Guest User

Untitled

a guest
May 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. public override void ViewDidLoad ()
  2. {
  3.  
  4. scroll = new UIScrollView(new System.Drawing.RectangleF (0, 0, 350, 100))
  5. {
  6. ScrollEnabled=true
  7. };
  8.  
  9. this.View.AddSubview(scroll);
  10. // Server erstellen & verbinden
  11. createServer ();
  12. // Get All the Actors
  13. ActorList = Room.getActorList ();
  14. // Inital Height
  15. int height = 10;
  16. // Set the Room- Name
  17. Title = Room.Name;
  18.  
  19.  
  20. // UI Erstellung je nach Typ
  21. foreach (var act in ActorList) {
  22. switch (act.Type) {
  23. case "temp":
  24. //Maybe an Image in Advance
  25. UILabel temperature = new UILabel(new System.Drawing.RectangleF (5, height, 250, 20));
  26. temperature.Text = "Temperatur:_ _";
  27.  
  28. this.scroll.AddSubview(temperature);
  29. //View.AddSubview(temperature);
  30. height = height + 30;
  31. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement