Hi, I'm having a performance issue.
I've created an UIView and overwrited it's drawRect function. At this function, I was drawing an image (big one), and over that, an white square at the entire screen with a polygon inside it, with CGContextEOFillPath. The result is an white screen with portion of the image (defined by the polygon) dis...
Hello,
I would like be able to create a movable magnifier (like the one you have when you copy and paste) in a custom view, for zooming a part of my view.
I have no idea on how to start, do you have any idea?
Thanks in advance for your help :)
...
I am working on an app that has several different views, two of the which are DetailViewController.h&.m and AddViewController.h&.m. Neither of these particular view have IB xib files associated with them, they just have programmatically generated UITableViews. These views essentially are the same, the only difference, is that in the AddV...
I have an app with with a UITabController and each tab is a UINavigationController. The root of one of my UINavigationControllers is a UIViewController.
Inside that view controller's view, I want to layout some subviews, but I'm confused as to where & how to lay them out in a way that will be resolution independent (i.e. not hardcode va...
Hi
I have several UIViews and UIImageViews that are loaded inside a UIScrollView.
Each "page", except the last one, in the scrollView works fine. The last view doesn't respond to touches, this is always the case no matter if there are 2 or 16 pages. All the pages are build in the same for loop using the same approach.
I have some UIBut...
Looking at UITextField item in Interface Builder, cannot see any way to set leftView property. Would like the put there an icon to show user that this is place for text input.
The overlay view displayed on the left side of the text field.
@property(nonatomic, retain) UIView *leftView
Can it be set using IB at all?
...
I have a UIview which I am drawing a series of buttons on to. I want to change these buttons depending on a selection the user makes. This is working nicely... but I cannot remove the buttons which were already there.
It's a UIScrollView with a view added as a subview. It's the subview which I need to basically "clear" / wipe clean. In ...
I am adding a UILabel instance as a subview of my custom UITableViewCell instance's contentView.
When I select the cell, the row is highlighted blue, except for the background of the label. The label text is sharp.
When I set the label and content view backgroundColor property to [UIColor clearColor], the label text becomes blurry.
Ho...
I'm trying to draw a small image on a UIScrollView for my iPhone app. I started with a UIImage created from a png I included in my bundle and that works ok. Every time the zooming/panning stops the delegate of the scrollview recalculates the frame of that UIImage (which is a subview of the UIScrollView's contentView) and calls setNeedsDi...
Hi everyone,
I've hit a bit of a roadblock with something that I hope that someone in here can help me out with. I'll describe the 'state of play' first, and then what the issue is, so here goes;
I have a series of view controllers that are chained together with a Navigation Controller (this works just fine),
All of these view control...
I have managed to resize the Textfield of the UISearchBar thanks to this question: Changing the size of the UISearchBar TextField according to the subclassing approach of timmytheRock.
The problem is, when the user selected the textfield, I would like to have the cancel button correctly added (i.e. animated and in the right position). R...
Hey guys,
I've set up a Button and add it to a view. I want to add a "done" button to the UIKeyboardTypeNumberPad. Here's my code.
UIButton *doneButton = [UIButton buttonWithType:UIButtonTypeCustom];
doneButton.frame = CGRectMake(0, 163, 106, 53);
doneButton.adjustsImageWhenHighlighted = NO;
[doneButton setImage:[UIImage im...
Hi,
I have a simple UIView used like container.
If I write this code:
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
UIView *hitView = [super hitTest:point withEvent:event];
NSSet *sTouches = [event touchesForView:self];
NSLog(@"Touches %d", [sTouches count] );
return self;
}
Doesn't work! I would...
I have a UIButton within a UIView. The button is docked on the bottom of the view using the Autoresizing Masks. The button is working fine when the view initially loads and the IBAction is being called successfully.
Now when I resize the height of the parent view the button stays docked at the bottom of the view, however now only half...
Hi
I have this code inside an animation block, but when the code is executed, I can still see the UIImageView moving on the screen. Is there anything I have done wrong or the CATransaction setDisableActions does not work inside an UIView animation block?
[UIView beginAnimations:@"An animation" context:nil];
[UIView setAnimationCurve:UI...
I have a UIView that gets created and added as a subview dynamically, not in interface builder. Problem is the subview disappears eventually and all that is left on the screen is the objects that are defined in the xib that is being loaded.
It seems to occur once the retainCount of the subview drops from 3 to 2. I'm fairly new to iPhon...
Hi!Before anything i'm sorry for my bad english.
I'm trying to draw a route in a UIView and set that view as a MKMapView.
Now i have a UIView class (ViewClass) where i put all the touches methods and set the view of my viewcontroller as an instance of that class. The MKMapView is a viewcontroller.view subview.
I can get all the touch...
I want to be able to add one allocation of a UIImageView to multiple UIViews. How would I do this without allocating multiple UIImageViews?
...
Say I have an array of points that form a line and a text. How can I go about drawing the text along this line in
- (void)drawRect:(CGRect)rect
of a UIView?
I am able to draw the path without a problem. Is there a standard method that I overlooked or a framework that would allow me to draw the text along that path? Ideally I woul...
I have a Class called Boards and it is a subclass of UIView, I allocated an instance of that and put it into a UIScrollView, I want to instead of he touches going to the UIScrollView, but to the subview: Boards(UIView), I just don't know how to pass the touches from the UIScrollView to the UIView.
P.S: I will be changing the contentOf...