the user name on the iPhone facebook app news feed view
is it a UILabel or UIButton, I am wondering how is it implemented. the little rectangle around the name doesn't seem to be the roundedrect... ...
is it a UILabel or UIButton, I am wondering how is it implemented. the little rectangle around the name doesn't seem to be the roundedrect... ...
how can i hide the keypad from iphone simulator after its use ? in my app Ist textfield is for name , another one is for password and one button i want to hide the keypad whenever i clicked on button. ...
hi guys, i have a UITableView , within each cell i have 2 custom buttons, what i want to do is withing the didSelectRowAtIndexPath method i want to do an if statement on which button was touched so i would effectively be splitting a cell in 2 but i have no idea how i could wright the if statements. any help would be greatly welcomed ...
Hi all, In my application I'm doing dynamic resizing of cells and label in it depending upon the text in it. I'm adding button to cells in uitableview. I'm taking the label instance and button instance in a new label and button variable respectively and setting their frames to arrange them properly after resizing. if(cel==nil) ...
I have the following code. UIImage *cancelImg = [UIImage imageNamed:@"cancel.jpeg"]; UIButton *btnCancel = [UIButton buttonWithType:UIButtonTypeCustom]; btnCancel.userInteractionEnabled = YES; [btnCancel setFrame:CGRectMake(0.0,0.0, 28.0, 28.0)]; [btnCancel setImage:cancelImg forState:UIControlStateNormal]; cell.accessoryVi...
hi. i am trying to dynamically add a UIbutton as a subview to UIlable. but i am not able to click the button. it seems that the lable doesnt allow the buttonTapped event to occur. can somebody explain what exactly is happening here. and can anybody give me an alternative for this. thnx ...
I am having an issue where I am trying to save whether a repeat image will show selected or not (it is created as a UIButton on a UITableViewCell created in IB). The issue is that since the cell gets re-used randomly, the image gets reset or set somewhere else after you start scrolling. I've looked all over and the advice was to setup ...
Ok I have a UIButton inside every row of a UITableView, and I want to fade it to alpha 0 when it begins editing. Then the opposite when it goes back to normal. How do I do this? I know what methods to use but how do I access the buttons from outside tableViewcellForRowAtIndex:? ...
in .h file I write -(IBAction)openShuffleForm; and .m -(IBAction)openShuffleForm{ NSLog(@"XXXXXXX"); } and connect with even touch up inside but when I run my program it error show this message -[UITouchData openShuffleForm]: unrecognized selector sent to instance 0x391cc20 ** what happen I don't know why !? ...
Hey There, I'm having a little trouble using the tag property to access a UIButton UIButton *randomButton = [[UIButton buttonWithType:UIButtonTypeRoundedRect ]]; randomButton.frame = CGRectMake(205, 145, 90, 22); // size and position of button [randomButton setTitle:@"Random" forState:UIControlStateNormal]; randomButt...
I tried use a transparent png as a background, but not success. How can I solve it ? thz. ...
Does the setTitle method of UIButton retain the NSString passed as argument ? I guess I can rely on the fact that the property is defined as: property(nonatomic,readonly,retain) UILabel *titleLabel In this case, I think that it does retain the string. Thanks, Apple92 ...
here is my code UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [btn setFrame:CGRectMake(0.0f, 0.0f, 100.0f, 100.0f)]; [btn setTitle:[NSString stringWithFormat:@"Button %d", i+1] forState:UIControlStateNormal]; [btn addTarget:self action:@selector(buttonPressed:) forControlEvents:UIControlEventTouchUpInside]...
Hey, This one has me stumped. Is it possible at all to change the background color of a UIButton in Cocoa for iphone. I've tried setting the background color but it only changes the corners. SetBackgroundColor seems to be the only method available for such things. [random setBackgroundColor:[UIColor blueColor]]; [random.titleLabel s...
Hi - I'm using the jquery buttonset() on a set of radio buttons (to tart them up). I'd like to be able to set the selected radio button on another user event. I've been looking into this and while I can set the selected radio button, but I cannot also (easily) update the UI to indicate what the selected radio button is. From what I can...
Hi, I'm new to iPhone development and I have a question that may have a very simple answer. I am trying to add buttons to a view and these buttons are associated with a custom class that I defined. When I add the buttons to the view, I would like to know what class these buttons correspond to. This is because when I press the button, I n...
I tried just making the image switch to black and then use sleep(1) and have it go back to the original image, but the sleep doesn't work at the right time, and I can't even see the black flash it goes so fast. [blueButton setImage:[UIImage imageNamed:@"black.png"] forState:UIControlStateNormal]; sleep(3); [blueButton setImage:[UIImage ...
How do I make it so it doesn't grey out? ...
Dear Members, Scholars. As it may seem obvious I am not armed with Objective C knowledge. Levering on other more simple computer languages I am trying to set a dynamic name for a list of buttons generated by a simple loop (as the following code suggest). Simply putting it, I would like to have several UIButtons generated dynamically (wi...
I have 3 buttons which call the same function. I want to know inside the function which button called it. Is it possible to know it? ...