bounds

UITabBarController View Position and Size

I have a UITabBarController that adds a viewController, but the positioning is off. There is about a 20px gap at the top of the screen and the bottom of the loaded viewController is hidden. How do I move resize the loaded viewController? viewController = [[FlashCardViewController alloc] initWithNibName:@"FlashCardViewController" bun...

Adding a TabBarController as the Subview of a View

I am loading a splash screen when my app starts. Then I want to load a TabBarController and it's ViewControllers. However, my TabBarController window does not scale to the screen size. Probably 3/4 of the TabBar at the bottom is getting cut off and There is a slim aprox 20 pixel gap at the top of the screen below the status bar. ...

How do i set the height of the UINavigationBar in an iphone app

Im using a typical situation with UINavigationController, id like to make the navigation bar a bit taller. setting its bounds and frame dont seem to make a difference, im using this code //set up the navigation UINavigationController *navigationController = [UINavigationController new]; [navigationController.navigationBar setBarSty...

UITableView in UINavigationController gets under Navigation Bar after rotation

This is Portrait: This is Landscape I've tried this on rotation with no success: self.tableView.autoresizesSubviews = YES; self.tableView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; ...

Trying to get a UIImageView to stop moving when it hits the bounds of the screen...help!

I am making a simple game app where you press a left/right button, and a UIImageView moves and animates. Here is the problem - I want the UIImageView to stop moving when it touches self.view.bounds.size.width How do I do this? Here is the existing code : - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouc...

UIView : frame size different of bounds size?

Hi guys. Is it possible to have an UIView with its bounds size different of its frame size? I'm trying to create an UIView with "{{0,0},{320,367}}" frame and "{{0,15},{320,337}}" bounds but i can't get it done using setBounds() and setFrame(). I got from the doc that changing bounds or frame changes frame or bounds accordingly but i t...

Getting the bounds of an MKMapvIew

In order to setup a query to an external server I want to get the bounds of the current Map View in an iPhone app I'm building. UIView should respond to bounds but it seems MKMapView doesn't. After setting a region and zooming in the map I try to get the bounds. I'm stuck on the first step which is to try to get the CGPoints that represe...

how to keep dragged TitleWindow within Flex app boundary

I am using PopupManager in FB4 to display a custom dialog. popwin = new TitleWindow(); popwin.addElement(myCustomDialog); PopUpManager.addPopUp(popwin,this,false); PopUpManager.centerPopUp(popwin); It's possible to drag the popped up TitleWindow and let go of it when its gray title bar lies outside the bounds of th...

setbounds on google maps api v3

I'm trying to set the bounds of a map fitbounds doesnt work because it puts some space around the bounds therefore doing {{{map.fitBounds(map.getBounds())}}} a few times will quickly zoom the map out I need to be able to do {{{map.setBounds(map.getBounds())}}} and for nothing to happen please note I am using v3 of the api and t...

ImageView bounds are larger than expected in android layout

Hey all, This is a layout that I have defined in an app. As you can see, I would like the TextView "@details/image_time_counter" to be aligned with the bottom right of the image. Unfortunately, this is currently what shows - app - hierarchy viewer all - HV part 2. HierarchyViewer reports that the ImageView has bounds much bigger than w...

Floodfill with "layers"

What I want is to create a vector drawing program with layers, but to avoid using transparency / opacity, I want to draw each shape from lowest layer to highest layer onto a single bitmap. For the filling, I want to floodfill the shape. My issue is that, if I have a shape that is drawn then floodfilled, then the next shape overlaps it a ...

Could random.randint(1,10) ever return 11?

When researching for this question and reading the sourcecode in random.py, I started wondering whether randrange and randint really behave as "advertised". I am very much inclined to believe so, but the way I read it, randrange is essentially implemented as start + int(random.random()*(stop-start)) (assuming integer values for start ...

get real bounds of QuadCurve2D in java

Hello, i want to know how to get the bounds of an QuadCurve2D, searching i found an method to get the bounds from a CubicCurve2D Using this methods is possible to change it to use QuadCurve2D? private static void ProcessMonotonicCubic(double[] coords, double[] bbox ) { if (bbox[0] > coords[0]) bbox[0] = coords[0]; i...

Getting the bounds of a polyine in Google Maps API v3

Is there any easy ways to find the bounding box of a polyline using Google Maps API v3? I'm working on a project where I need to update the bounds as data is added and removed from the map. This is pretty easy by just doing bd.extend(point) where bd is the bound object and point is a LatLng object. The problem is when I start removing da...

How to get the visible bounds of a panel

I have a panel that may or may not be within other panels. I'm trying to work out the visible bounds of that panel. I thought the GetWindowRect or the GetClientRect would do the trick but no joy. To test this I've created a form with a panel and at multiline text box. The panel is bigger than the form (i.e. it stretches below the bot...

Invalidating loop bounds

I've recently inherited a project primarily done in C++, so this is my first real exposure to it. I'm wondering if I may have a problem erasing a vector's elements from within a loop bounded by the vector's begin() and end(). Here's (essentially) what I've been trying to do: for (vector<double>::iterator i = distance.begin(); i < dista...

Problems getting bounds on rotation

I've looked all over the net trying to figure out how to get the bounds based on orientation. The notifications are working fine but I'm getting the bounds of the view via: CGRect cgRect = self.view.bounds; which returns {0, 0}, {320, 460} which is correct but when the device is rotated it returns the same CGRect, where I was expectin...

Determine the bounding rect of a WPF element relative to some parent

I consider this a pretty simple request, but I can't seem to find a conclusive answer in my searches. How can I determine the bounds of a particular visual element in my window, relative to some other parent element? I've tried using LayoutInformation.GetLayoutSlot but this just seems to return a Rect at 0,0 and doesn't reflect the actu...

When using covariance notations or generic bounds in Scala

Hi, In Scala variance can be defined with variance operators like + and - on the generic type argument. For example the List type is covariant in the standard library. class List[+A] So a function with a covariant list can be defined like this: def foo[A](list : List[A]) Also variance can be emulated with generic bounds. So we can...

Bounds rectangle of selected controls in wpf

Is there a simple way to find the rectangle (area and location) that would be required to cover a set of control?? VisualTreeHelper.GetDescandentBounds() works fine, but there are no overloaded methods where I can specify the controls that it should consider for finding the bounds rectangle. Any simple solution will be greatly appreciate...