uiview

Cocoa Touch: How to have a controller always visible over other views

I'm relatively new to Cocoa programming, but I've managed to figure a fair amount out. One thing I haven't been able to figure out yet is how to have an element that is visible over all views. Like a volume control that is always visible just above the tab bar at the bottom of the screen. How should I go about doing that? ...

How to make a line of code execute only after the time interval of the animation block?

I have put a line of code inside the UIAnimation block. And the next line comes after the animation block. I want the second line only to be executed after the time interval of the first animation block. Eg:- [UIView beginAnimations:@"View Flip" context:nil]; [UIView setAnimationDuration:0.5]; //First line comes here [self.view addSub...

Hi, I wanna know how to release game UIView and go back to the root menu

Hi , for example , when you playing game , you are play in the game UIView and when you exit your game and return to the game root menu, there're a 'exit' button on the game UIView I wanna click this button to release self view and go back to the main menu how to do this? ...

Access UITableView from view,get a value and come back.(IPHONE)

HI, i've a problem, in witch way could i access with a normal button that i've in a view to a uitableview, get a value from a cell and set a text label(that is in the first view) whit this value and then com back on the first view with a back button? Thanks in advance. ...

how to change the shape of UIView

Hi, Is it possible to create a UIView with rounded edges ? ...

UIView animation cancels previous animation?

Hi I have an NSTIMER that counts the time, and on t = 10, it fires an animation but during that time it might happen that another animation is running. This causes the previously running animation to cut off. Any idea? i thought UIVIEW animations were ran in diff threads. I cannot use a willstop selector here since t = 10 might happen wh...

How to shrink MPMoviePlayer Controller view

Hello, I am using iPhone SDK 3.1.3 I am looking to play file using MPMoviePlayer controller. It is playing in full screen view. Is there way to scale MPMoviePlayer Controller view to play file in small view in iPhone SDK 3.1.3? Thanks, ...

Splitting 512 square PVR files into 4 separate windows

To conserve space, we are attempting to split a pvr animation which is 512 pixels square into several smaller windows, or 2x256sq + 8x64sq along the bottom. This will mean that not as much space is wasted by views being off the screen, and therefore will take up less space to download. For an initial test, we're doing 4x256 to keep t...

UIView shadow drawing wrong

Trying to draw a shadow using code from this question: http://stackoverflow.com/questions/805872/how-do-i-draw-a-shadow-under-a-uiview I implement it in a UIView subclass as discussed, but when I try and use it using UIView *shadow = [[ShadowView alloc]initWithFrame:CGRectMake(100,100,100,100)]; I get only a black square, rather than so...

iPhone SDK moving a view and its subviews to back

I have an application with multiple views that contain subviews. I know that you can hide or make visible a view and its subviews by setting the hidden property to YES or NO. However with a number of views, to use the hidden property requires keeping track of what view is being displayed. I thought I could use sendSuBViewToBack: to hide ...

Possible iphone animation timing/rendering bug?

Hi all, I have been working on an iphone apps for several weeks. Now I encounter an animation problem that I can't figure out how to resolve. Mayhbe you can help. Here is the details (a little long, bear with me): Basically the effect I want to achieve is, when user click a button, a loading view pops up, hiding the whole screen; and th...

Drop shadow coordinate different from iPhone OS 3.2?

I'm trying to draw a custom view with a drop shadow. I'm having different results from iPhone OS 3.2. Has the coordinate system changed for CGContextSetShadowWithColor from 3.2? Here is the code I'm using: CGContextRef graphicContext = UIGraphicsGetCurrentContext(); CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB(); CGFloa...

Modifying UINavigation Bar Buttons in SubViews

I'm having trouble trying to modify the navigation bar in the subview portion of my application. self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(add_Clicked:)] autorelease]; I have no issues modifying the navigation bar in any of my...

Image animation over CGContextDrawPDFPage

I'm modifying the QuartzDemo sample app from Apple. In QuartzViewController.m I have modifications (by DyingCactus) which replac the back button and add a method to handle the back button press as follows: -(void)viewDidLoad { // Add the QuartzView [scrollView addSubview:self.quartzView]; //add custom back button if this i...

UIScrollView Custom View rotation problem

I have a ScrollView with a Custom View. Now i have the problem with the rotation, the view has after the rotation not the correct frame pos / size. How can i call the CustomView after rotation for a reposition and resize the frame and content?! - (void)setupPage { NSUInteger nimages = 0; CGFloat cx = 0; for (; ; nimages++) ...

NSString sizeWithFont: returning inconsistent results? known bug?

I'm trying to create a simple custom UIView wich contain a string drawn with a single font, but where the first character is slightly larger. I thought this would be easily implemented with two UILabel:s placed next to eachother. I use NSString sizeWithFont to measure my string to be able to lay it out correctly. But I noticed that th...

Build xib Interface Builder and load them as subview in iphone

Hi all, what I would like to know if it's possible to build a view and its correspondent xib file. Then, in a generic controller, load this view programmatically and add as a subview to the current view. This subview should act as a generic info box which can be loaded by many controller. thanks Leonardo ...

How can I create "glass" effect on my own UIViews?

Hi there, I'm working on an iPhone app that has some non-rectangular UI elements. Currently, I'm subclassing UIView, and in drawRect I'm using a CGPathRef to draw black border and a color-filled interior. I'd like to make these items look more like "buttons", though, so I'd like to have some of the same sort of "glass effects" that ar...

how to add UIActivityIndicator to window as subview..?

Hi, i have to add activity indicator to UITableViewController view since table view height can wary as number of rows increases its not possible to activity indicator display at center. So i think to add it as subview to window and bring it front but when i try [[self view] window] it giving nil, i tried even [[[self view] supe...

viewWillAppear for subviews

I have UIScrollView with multiple UIVIew subviews. I would like to update the data that is displayed by each UIView when they appear in the visible portion of the UIScrollView. What is the callback that gets triggered? I tried viewWillAppear, but it does not seem to get called. Thanks. :) ...