mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 14:20:05 -04:00
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:
committed by
Francesca Frangipane
parent
c1ef1acfc0
commit
bd944898f0
@@ -1,5 +1,7 @@
|
|||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- On iOS, the view is now set correctly. This makes it possible to render things (instead of being stuck on a black screen), and touch events work again.
|
||||||
|
|
||||||
# Version 0.16.2 (2018-07-07)
|
# Version 0.16.2 (2018-07-07)
|
||||||
|
|
||||||
- On Windows, non-resizable windows now have the maximization button disabled. This is consistent with behavior on macOS and popular X11 WMs.
|
- On Windows, non-resizable windows now have the maximization button disabled. This is consistent with behavior on macOS and popular X11 WMs.
|
||||||
|
|||||||
@@ -489,6 +489,8 @@ fn create_delegate_class() {
|
|||||||
let view: id = msg_send![view_class, alloc];
|
let view: id = msg_send![view_class, alloc];
|
||||||
let view: id = msg_send![view, initForGl:&bounds];
|
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, setRootViewController:view_controller];
|
||||||
let _: () = msg_send![window, makeKeyAndVisible];
|
let _: () = msg_send![window, makeKeyAndVisible];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user