cgrect Questions

2

Solved

How would you properly determine if a point is inside a rotated CGRect/frame? The frame is rotated with Core Graphics. So far I've found an algorithm that calculates if a point is inside a triang...
Parasynthesis asked 8/6, 2013 at 18:3

5

Solved

i want change the UITextView programmatically with the amount of text i set, and i have a problem, if i add a the UITextView with interface builder and i do this: CGRect frame = textViewA1.frame; ...
Meyerbeer asked 28/6, 2012 at 23:31

2

Solved

I'm stuck with some kind of magic: when I try to change UITextView frame (in this case with UISlider), text is drawn in some other (smaller) area than frame (resizing multiple times). The funny thi...
Picador asked 30/4, 2013 at 13:29

2

Solved

This document outline from my sample Storyboard shows what I'm working with. I have a custom container view controller and two content view controllers connected via embed segues. Here is the s...
Inkling asked 19/10, 2012 at 23:58

3

Solved

I want to mimic "zooming in" on a view. The larger view will be added as a subview to the smaller view's superview, and the larger view should look as if it is zooming in from the smaller view. Giv...
Turbulent asked 29/1, 2013 at 23:51

2

Solved

This is a very simple question of which i can't seem to find the answer. How to do this : CGRectMake(1, 3, size) or CGRectMake(pointB, size) or CGRectMake(pointB, size.width, size.heigh...
Teliospore asked 28/1, 2013 at 14:1

6

Solved

I wan't a imageview which is semi-transparent in other parts and completely transparent in the middle .. see this image.. i have managed to do it but it is not the best of ways.. can I only have ...
Indigenous asked 3/8, 2012 at 9:1

4

Solved

I am migrating my apps over and on one I use a UIPickerView. In the viewDidLoad method I create the picker and set it's y origin to be self.view.frame.size.height so that it is off screen. Then I j...
Groth asked 21/9, 2012 at 21:32

1

Solved

I am trying to achieve an animation that when you hold down a button it animates a block down, and when you release, it animates it back up to the original position, but I cannot obtain the current...
Porkpie asked 15/12, 2012 at 3:6

7

Solved

For my application I am trying to store CGRect objects into an NSMutableArray. It is loading well and printing in the log statement, but trying to take the CGRects from the array shows an error. He...
Portia asked 25/3, 2011 at 11:3

2

Solved

According to the Apple documentation, CGRectMinY(CGRect) rect returns the y coordinate of the top right corner of the specified rectangle Shouldn't it be the bottom left corner of the rectangl...
Pontine asked 4/6, 2012 at 0:51

1

I have an area where a user can add their signature to an app, to verify an order. They sign with their touch. The only thing is, the frame for the signature is large, and if the user were to make ...
Cephalochordate asked 25/4, 2012 at 10:26

2

Solved

I'm having problems with this method. I have two rectangles that are obviously contained within each other.(I've even graphed their coordinates manually to make sure.) When I use CGRectContainsRect...
Yuma asked 24/1, 2012 at 4:15

1

Solved

I am trying to translate this centering code snip in Objective-C into MonoTouch imageView.frame.origin.x = CGRectGetMidX(view.bounds) - CGRectGetMidX(imageView.bounds) But can't find where Ori...
Matthew asked 11/1, 2012 at 21:11

1

Solved

I have simple UIWebView with loaded html. I want to show the PopoverView pointed to the selected text. I can get the menuFrame of the UIMenuController and use its rect, but the result isn't as accu...
Allele asked 22/9, 2011 at 12:22

3

Solved

I have placed a button in my view using CGRectMake(x,x,x,x), x being the location and size of course. When I rotate the view using -(BOOL)shouldAutoRotate... I want to change the location of the bu...
Main asked 8/7, 2011 at 18:17

1

Solved

I have an array, full of CGRects. That part is fine. The problem is when I go to retrieve the CGRects from the array, I'm getting weird errors. Check out my code. NSArray *frameLocations = [NSArra...
Muenster asked 4/7, 2011 at 18:30

1

Solved

I'd like to have the coordinates relative to the main window, therefore I'm using convertRect:toView: with nil as second parameter: CGRect result = [self.view convertRect:addToList.frame toView:ni...
Profligate asked 7/6, 2011 at 7:31

1

Solved

I have a CGRect; can I transfer its coordinates to be in the user coordinate system, i.e., bottom left corner to top instead of top left corner to bottom. Is there any predefined method for this or...
Yorgos asked 30/3, 2011 at 6:10

3

Solved

How I can substract one CGRect from another? I want the result R1 - R2 to be the largest subrectangle of R1 that does not intersect R2. Example 1: +----------------------------------+ | +-------...
Landgrave asked 27/1, 2011 at 0:5

© 2022 - 2024 — McMap. All rights reserved.