I have two views: one has just a button (view 1) and the other contains a tableview with a search bar (screen2). When the user clicks that button in view 1, I want view 1 to flip and display screen 2.
View 2 resides inside of the navigational controller with a navigation bar on top.
Below is what I have for now. The transition animati...
Hello,
I have an application composed of a main view and a secondary view which is used to define parameters used by the first view. Both views have their own .xib . In order to simplify the management of the application, I Would like to have the same controller (same class ans same instance) for both views.
How can achieve this?
Tha...
I have a simple UIView backgroundColor transition running on its own thread as such:
- (void)colorLoop_thread {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
// [self performSelector:@selector(changeColors)];
[self performSelectorOnMainThread:@selector(changeColors) withObject:nil waitUntilDone:NO];
[pool release];
}
...
I have created several UI elements in the viewDidLoad method. I want to change the color of a particular UIButton from within one of my methods. How can I do this? I've tried something similar to: self.view.myUIButton.backgroundColor = myUIColor That doesn't work. What am I missing?
...
I am new to iPhone development.
I have been looking at samples and make a sample for myself, but am stuck.
I am trying to add a view to the AppDelegate class so it will show when the app is launched.
code is as follows
- (void)applicationDidFinishLaunching:(UIApplication *)application {
[window addSubview:viewController.view]...
Hi
I have been doing spring cleaning in my app. I noticed something strange, that, when I tried to correct it, completely crashes my app.
There are two "paths" in my app; either you are in the "A" part of it or you are in the "B" part. From the "A" part you can go to the "B" part and the other way around.
I designed it so that the app ...
Hey, I'm playing around with a script my teacher provided for a table based application. However I can't seem to get my own view to load.
Files:
SubViewOneController (which is a sub view, also has a nib)
TapViewController (Custom UIView I created and want to add to a cell)
RootViewController (Main controller which loads in the views)
...
Guys,
There is a way to get a view controller reference from a UIView object? I need something like this:
MyParentViewController *myParentViewController = [self.view.superview controller];
Thanks in advance.
...
Hi,
I'm trying to animate a UIView so that it can grow larger when tapping a button and shrinks down to its original size by tapping the button again.
I do this by adjusting frame to its new size and origin and running the code below.
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.5];
[UIView setAnimationCurv...
I have a standard UITableView with a UINavigation bar at the top with the standard back button, etc.
I have a button that pops up a "modal dialog" box, which is a view that sits on top of and almost obscures (but doesn't quite) the view underneath. Problem is, the buttons (including the "back" nav button) are still visible and thus tou...
Whats wrong with this code?
-(void) drawRect:(CGRect) rect {
CGContextRef c = UIGraphicsGetCurrentContext();
if (c != nil) {
CGContextSetFillColorWithColor(c, self.cornerColor.CGColor);
[self drawRoundedCornersInRect:self.bounds inContext:c];
CGContextFillPath(c);
}
}
...
I am having trouble programmatically removing stacks from a view. I am doing things a bit convoluted, which is certainly not helping matters. Here is what I want to do:
User is in one tab of a tab view controller.
User selects item from table that contains URL.
App switches to another tab view, and sets an existing UIWebView to the sel...
I want to implement a view in an iPhone application that is essentially like a rich text document. I need it to be click-editable, and I'd like to be able to embed graphic objects (either an overlaid view object, or manually drawn in graphic) with the text wrapping around. much like you would expect in a word processor. That's about t...
I posted earlier but am running into similar problems again. Basically the way that my app is setup there is a top bar that is basically just a static image that has UIButtons placed on top of it. That is the Main View Controller and is persistent no matter what view is shown beneath it. I can't use a navigation controller because it is ...
Hi!
I've made an custom UILabel class in which i draw a red line at the bottom of the frame.
The red line is showing but i cant get the text to show.
#import <UIKit/UIKit.h>
@interface LetterLabel : UILabel {
}
@end
#import "LetterLabel.h"
@implementation LetterLabel
- (id)initWithFrame:(CGRect)frame {
if (self = [sup...
I have a small floating UIView, viewHover, which acts as a container to 2 views "viewHot and viewCold"
I which to transition between viewHot and viewCold with a zoom in then disolve transition I have seen a few times.
Is this possible?
...
Edit
After further testing, it appears that the part of my button that are not clickable are where the status bar used to be. I'm hiding the status bar with :
// -- Override point for customization after app launch
[[UIApplication sharedApplication] setStatusBarHidden:YES];
Also added the Boolean value to my *-info.plist file:
U...
I have subclassed UIView object inside a uiscrollview which displays a pdf page. I can zoom that page. But when I do so, the inside view is zoomed and is getting blurred. I understood that the inner view shud be refreshed and i called setNeedsDisplay. But no change have happened and its the same even now. Below is the code for drawRect f...
hello,
I would create a view programitically , then Can i place the navigation controller upon a view by making the view as rootview? and then return the rootview to the window object in Objective-C for iPhone programming.
Is this possible?
...
Can anyone suggest a good tutorial about how to create custom view?
...