Make fullscreen view with CGRectMake

I am creating a view (using card.io) and I want the view to span the entire screen.

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

Here is the code:

 CardIOView *cardIOView = [[CardIOView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width,self.view.frame.size.height)];

Here is an example

Here is an example.

+4
source share
2 answers

Dave from card.io is here.

When you create CardIOView, its frame will depend on the size that you set. However, viewing the camera in (transparent) CardIOViewwill have the standard iOS 4: 3 camera form factor.

, CardIOView 320 , ~ 426 . ( , cameraPreviewFrame CardIOView.)

, CardIOView, , , . , CardIOView, . , .

+1

, - :

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

Source: https://habr.com/ru/post/1545470/


All Articles