F
F
Flie2014-08-11 18:12:06
Objective-C
Flie, 2014-08-11 18:12:06

How to rotate UIView in xcode (Objective-C, Cocoa-touch) when loading single landscape orientation?

DVS, everyone!
Tell me how to solve the problem: the application has only landscape orientation.
In a single ViewControllere, SKScene is initialized. It passes self.veiw.frame.size, which should be 568x320, but frame.size returns 320x568 instead, like in portrait orientation. Please explain why this is so and how to deal with it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Flie, 2014-08-11
@Flie

I just moved the initialization of SKScene to viewDidApear and frame.size began to pass the correct sizes. Is it possible to initialize a new scene in this way and what could be the danger in the future?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question