May be this is quite simple for many of the experts here.
I am a newbie for iphone dev.
I have a view controller showing userid and pwd text buttons.
When user enters userid,pwd and click "login" button, it should go to DB on server and verify.
If it is correct then another view with searchform is loaded.
Can someone help me with how...
Okay so i have a very basic app with a view in it with one button. i have the controller set to only allow landscape. My problem is that after it is initialized, and then i click my button (which only has a log statement) , is different than the log statements i have at the end of my init.
I start the app in landscape mode on my simul...
So i have an app that is not so much a webapp but more uses UIViewControllers and UIViews for most screens. On one particular controller i have a UIWebView control that only occupies a small portion of the UIViewController screen real estate that i load html from a web service as a string.
[self.webView loadHTMLString:marketingBlurb ...
Hi there,
I setup in IB in portrait mode my main view (for iPad). I have a toolbar, a map view (x=0, y=44, w=768, h=774) and a footer view (x=0, y=818, w=768, h=186).
When I rotate the iPad, I want the map to stay on the left side and be resized vertically to fit the view (x=0, y=44, w=756, h=704) and put the footer view on the right s...
I have a collection of images that the number of them aren't determined and vary from 0 to 1000, anyone got an idea how can I present them to the user? I think I can add each three of them to a uitableviewcell but I don't know how. any help would greatly appreciated. :)
...
I have an appdelegate(.h,.m) and two view controllers - loginviewcontroller, searchviewcontroller
On loginviewcontroller I have userid and password fields and login button.
once login is verified searchviewcontroller view will be shown.
I have loginsuccess function defined in appdelegate and it is being called from loginviewcontroller....
I am trying to draw a line
my Code is this
-(void) drawRect:(CGRect) rect
{
NSLog(@"Reached Draw ARect Function");
CGContextRef ctx = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(ctx, 2.0);
CGContextSetRGBStrokeColor(ctx, 1.0, 2.0, 0, 1);
CGContextMoveToPoint(ctx, 0, 0);
CGContextAddLineToPoint( ctx, ...
HI i want to draw a rounded corner to once side (only one corner) of my UIView only one corner to be rounded and others must not..
any one help me....
...
I have an XIB file containing a subview (footerButtonsView) containing two buttons. I change the position of the subview like so:
if (footerView.frame.origin.y < 280.0) {
[footerButtonsView setFrame:CGRectMake(footerButtonsView.frame.origin.x, footerButtonsView.frame.origin.y+300.0-footerView.frame.origin.y, footerButtonsView.fr...
Hi there.
Basically I've got the same background image throughout my entire iphone application.
I don't use XIBs (nasty things :p).
So I was wondering if there was any way to add a "default" background image to all of my UIViewControllers?
I tried subclassing UIViewController and created the class UIViewControllerWithDefaultBackgroun...
Anyone who has gone through the Stanford CS193P class on iTunes will recognize this from Assignment 3 (HelloPoly). For those not familiar:
I have a custom view called polyView, an instance of PolygonView, a subclass of UIView. On this view, I use CGContextDrawLinearGradient to paint a color gradient over the entire rectangular view. T...
The following animates a view to the upper left part of the screen (ipad):
[UIView beginAnimations:@"anim" context:nil];
[UIView setAnimationDuration:5];
[UIView setAnimationDelegate:self];
someView.frame = CGRectMake(0, 0, 1024, 768);
[UIView commitAnimations];
However, it does not resize the view (think of a UIImageView that I w...
How do I capture touch events such as - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event without subclassing a UIView nor using UIViewControllers.
What happens is that I have a simple UIView created programmatically and I need to detect basic tap events.
...
Hi. I have 2 points in a UIView, but I am unable to get the correct line equation between these two points because UIView coordinate system is not cartesian. When I apply the cartesian slope of a line, I keep getting the wrong slope for the UIView coordinate system. Maybe I'm applying the identity matrix incorrectly or using the wrong id...
hi,
i have a tabbar app with 4 tabs.
i want to add a small view (frame is: 0, 390, 320, 50) just over the tabcontrollers. the view shows a picture (like banner).
but i want to see it on all over tabs. not just first tab's view controllers.
where should i add it? should i use viewcontroller for it?
...
I have a UIView subclass called Card that I move around on my board and drop on hot spots called slots. When I drop the card I use the hitTest to figure out if I am dropping the card on one of my hotspots. I want to get a property of that hot spot but I am having trouble getting that to work properly. My only guess is the hitTest return...
I have this code
arrangeListViewController = [[[ArrangeListViewController alloc] init] autorelease];
arrangeList = [[UITableView alloc] initWithFrame:CGRectMake(attributesPadding, y, popoverWidth - 2* attributesPadding, popoverHeight - y - attributesPadding) style:UITableViewStylePlain];
arrangeList.layer.cornerRadius = 15;
So i add ...
So i have a:
arrangeList = [[UITableView alloc] initWithFrame:CGRectMake(attributesPadding, y, popoverWidth - 2* attributesPadding, popoverHeight - y - attributesPadding) style:UITableViewStylePlain];
That is the tableview that i want to connect to a controller, and i also have added this tableview to a uiview that i have animate onto...
in my previous code, I changed the coordinate system in my view's drawRect, so that the rectangle had 0,0 in the centre, 0,1 at the top centre and 1,0 in the centre of the right edge. I.e. a normalised Cartesian system.
{
// SCALE so that we range from TL(0, 0) - BR(2, -2)
CGContextScaleCTM (X, 0.5 * bitmapSize.width, -...
I need to know if a point is inside at lease one of the views in a given set of views. For that, I used UIView's pointInView method, but it always returns NO. As an act of despair, I checked if the view's center point is inside the view and it also returned NO. This is the code I've used for that:
BOOL wasPointFound = NO;
NSArray *views...