Questions tagged [cgrectmake]

CGRectMake is used in iOS, it returns a rectangle with the specified coordinate and size values.

CGRectMake is used in iOS (), it returns a rectangle with the specified coordinate and size values.

CGRect CGRectMake (
  CGFloat x,
  CGFloat y,
  CGFloat width,
  CGFloat height
);
  • x: The x-coordinate of the rectangle’s origin point.
  • y: The y-coordinate of the rectangle’s origin point.
  • width: The width of the rectangle.
  • height: The height of the rectangle.
153 questions
-1
votes
1 answer

Literal values in CGRectMake and retina

if I have this line of code in my app will IOS do an automatic translation to retina? so: self.cellView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 1024, 768)]; would automatically become on iPad3: self.cellView = [[UIView alloc]…
user7865437
  • 812
  • 14
  • 28
-2
votes
3 answers

iOS: How to limit the width of CGRectMake

I am making a very simple app, that has an UIButton and an UIImageView. Every time the user taps the button the image width increases by 5. My question is, how can I limit the width of the image? lets say, if it reaches 90 then prevent the image…
-2
votes
3 answers

Tutorial CGRectMake Understanding

I am following a tutorial and I am a bit confused on this line of code... sideView.frame = CGRectMake(gesture.direction == UISwipeGestureRecognizerDirectionRight ? -swipedCell.frame.size.width : swipedCell.frame.size.width,…
Dummy Code
  • 1,858
  • 4
  • 19
  • 38
1 2 3
10
11