set the UIViewController's view to the one that was just created (#595)

* set the UIViewController's view to the one that was just created

* capture the return value in a Unit to avoid SIGILL/SIGSEGV's.
change whitespace to be more idiomatic of Obj-C

* CHANGELOG entry
This commit is contained in:
mtak- 2018-07-13 12:10:12 -07:00 committed by Francesca Frangipane
parent c1ef1acfc0
commit bd944898f0
2 changed files with 4 additions and 0 deletions

View file

@ -489,6 +489,8 @@ fn create_delegate_class() {
let view: id = msg_send![view_class, alloc];
let view: id = msg_send![view, initForGl:&bounds];
let _: () = msg_send![view_controller, setView:view];
let _: () = msg_send![window, setRootViewController:view_controller];
let _: () = msg_send![window, makeKeyAndVisible];