I use code as below to get screen width, it is ok in Portrait mode,
the frame is (0, 0, 768, 1004),
but when I rotate it to Landscape mode,
the frame is (0, 0, 748, 1024), I need 1024, but it is not width, but height.
how can I get correct width inside view?
the frame is (0, 0, 768, 1004),
but when I rotate it to Landscape mode,
the frame is (0, 0, 748, 1024), I need 1024, but it is not width, but height.
how can I get correct width inside view?