Make view cover full screen using CGRectMake

后端 未结 2 878
小蘑菇
小蘑菇 2021-01-19 10:59

I\'m creating a view (using card.io), and I want the view to cover the full screen.

Its only covering about 2/3rds of the screen atm.

Heres the code:

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-19 11:22

    If you want cover all the screen, it is immediate write something like this:

    CardIOView *cardIOView = [[CardIOView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    

提交回复
热议问题