hi there,
i've got a strange problem using uibuttons, type custom. i'm placing 4 of those buttons on a scrollview, rotating each button by a random angle using CGAffineTransform. now it seems, that the buttons itself change size depending on the angle of rotation.
can't get this problem solved :(
UIGraphicsBeginImageContext(tempCtxSiz...
i'm trying to get a tab bar effect not unlike russel quinn's 'creative review' app. the tabbar swipes across, which i have figured out, but the tabbar style itself is unlike anything i've seen on the iphone (though it looks so simple!).
it has square buttons with a space between, and each button has a select/active/inactive state. i'm ...
hi all,
I have a class defining a custom UIButton. I configurate a normal and selected state like this:
//custom image
UIImage *image = [UIImage imageNamed:@"customIconCreationBG.png"];
UIImage *stretchImage = [image stretchableImageWithLeftCapWidth:0.0 topCapHeight:0.0];
[self setBackgroundImage:stretchImage forState:UIControlStateNo...
Hi. I tried a lot of stuff, still no result.
So I have the following button created programatically in a subclass of UIViewController:
rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
rightButton.frame = CGRectMake(0.0, 0.0, 110.0, 40.0);
rightButton.titleLabel.font = [UIFont fontWithName:GAME_FONT_NAME_STRING si...
I currently have a UITableView with each cell containing four UIButtons. I am placing an image for each button with a downloaded picture from online. I'd like to have the button fade in when the image is finished downloading. I know I can animate in the viewDidLoad, but I assign the image in the cellForRowAtIndex function. How do I go ab...
I have a series of buttons that have suit symbols on them. Currently I provide these suit symbols as bitmaps. In preparation for iPhone 4 I'd like to use text instead. However Interface Builder rescales the button to account for whitespace underneath the symbol so I can't get the image to fill the button completely.
Any hints on gett...
So I have my app working good when you press and drag along. I also have UIButtons set to Touch Down in Interface Builder.
As well when you drag you need to drag from the outside of the UIButton. You cannot click on the UIButton and drag to the other.
TOUCHES MOVED:
Code:
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)even...
Hi,
I've got various views in my iPhone application that require padding e.g a custom UIButton with text aligned left, and a UILabel with a background colour.
This may be a really stupid question, but how can I apply 'padding' to move the text off the left hand edge?
I've tired using bounds etc without any success.
I know I could cre...
Hello! I’ve got a view that has to be presented both in landscape and portrait. The transition between different orientations is done by repositioning and resizing the subviews. One of the subviews is a button (plain UIButton with an image background). When the interface rotates to landscape, the button starts misbehaving – it can only b...
I have a view that is added to the current view when the device is rotated to a LandscapeLeft or LandscapeRight orientation. This view has 4 buttons on it that are all connected to outlets and each have the "touch up inside" event hooked up to the same action. If rotated to a LandscapeLeft orientation, I transform my added view to rota...
When tapping a UIButton of type UIButtonTypeInfoLight you get a nice shine effect around the button. Is it possible to add this effect to custom UIButtons?
...
i think there may be option like launch url in ib
can anybody answer it if u know,,,,,
...
I have a UIButton which I've added in IB, however the view behind this button changes color and I need to switch the button's type between InfoDark and InfoLight. Bizarrely though, buttonType property is read only. So how can i switch between light and dark info buttons?
...
I need to change the value of a variable of the previous view when the default back button is selected. How can I develop this using viewControllers in an iphone application?
I tried to do it by creating a custom back button and by set method. I call both these methods in viewWillDisappear method.
-(void)viewWillDisappear:(BOOL)animate...
hi guys,
i have a simple UIButton that, once clicked, plays a 1 second sound. i want to be able to click that button really fast and produce that sound as many times as i humanly can.
i currently have this up and running by including the and maybe that is where the culprit is... also, i am digging into apple's references and cannot fi...
Hello,
I'm currently dynamically creating UIButton objects in my view.
I have an NSMutableArray containing information about them (id - label).
I then create my view objects by doing a for iteration on my MutableArray.
I'm trying to use this code on my buttons to catch touche events :
[myButton addTarget:self action:@selector(select...
I'm using Hebrew language in my app. This langauge is read from right to left.
I'm using UIButton and setting text programatically. Also i'm using following lines of code to set the button labels properties.
[myButton.titleLabel setNumberOfLines:2];
[myButton.titleLabel setTextAlignment:UITextAlignmentRight];
[myButton.titleLabel se...
Im developing a memory game. As i click on a button I want the background to switch. When I click on the card the second time i want the background to switch for a second and then go back to the original (if it wasnt the correct card). But the background of the buttons are not changed until i return from the method (buttonPressed). Why i...
Under iOS 4, when my app installs from xcode it crashes on the first launch but not on subsiquent launches.
After commenting out some addSubView methods the debugger is finally giving me one piece of info
It crashes on [super viewDidLoad]. The debugger states:
Unable to access variable "button1"
- (void)viewDidLoad {
[super ...
Hello all,
I'm trying to use uiBinder. I followed the tutorial provided by
google, but I don't know why clickevent doesn't work? I want to count number of clicks and show it in the span, it doesn't work, I also put window.alert but it seems that the event handler is not called at all! Can anyone help me? It's couple of hours I'm working...