How to print UIButton id

Ads

 
 

Share on Google+Share on Google+

Java Coder
How to print UIButton id
1 Answer(s)      2 years and 8 months ago
Posted in : MobileApplications

How to get the id of the button in the IOS application?

Thanks

Ads
View Answers

January 8, 2015 at 2:56 AM


Hi,

You can use the following code:

- (IBAction)btnClicked:(id)sender {

    UIButton *button = (UIButton *)sender;
    int btnTag = button.tag;

    NSLog(@"Button Tag: %d", btnTag);

}

Thanks


Ads









Related Tutorials/Questions & Answers:
How to print UIButton id
How to print UIButton id  How to get the id of the button in the IOS application? Thanks   Hi, You can use the following code: - (IBAction)btnClicked:(id)sender { UIButton *button = (UIButton *)sender; int
id sender uibutton
id sender uibutton  Hi, I want to find which button is clicked based on the id sender when UIButton is clicked. thanks   HI, Here is the code example: UIButton* myButton = (UIButton*)sender; NSLog(@"Button tag
Advertisements
UIButton
UIButton   Hi, Could anybody help me. I have an array with buttons... trackSelectorBTN:Slider=2]; // Here is my Problem: How can I sent only the number of the senders.tag? } ... method: - (void)trackSelect:(UIButton *)sender
Finding an ID Value and Print the Element Text
Finding an ID Value and Print the Element Text        This Example gives a way to Find an ID value and Print the Text in a DOM document . The Methods which are used
how make ID - Ajax
how make ID  how make a ID in eyeball chat
How to get Button Id ?
How to get Button Id ?  How to get Button ID instead of its value in Servlet. (I am not using jsp right now
UIButton with image
UIButton with image  Hi, How to create UIButton with image? Thanks
how to print the server time
how to print the server time  how to print the server time in jsp and update time in fix interval
How can I change UIButton title color?
How can I change UIButton title color?  Hi, I have a button in my iPhone/iPad application. I want to change the color of the text when user clicks on it making it selected. Provide me good example code. Thanks   Hi
How to print this Format exactly?
How to print this Format exactly?   * * * & reverse
How to print this in java?
How to print pattern in Java?  How to print a particular pattern in Java...;  How to print this in java
how to print the server time
how to print the server time  i want to print database time in clintside and update time in every secound without creating connection to database for each time. how can i do
how to print String as pattern ?
how to print String as pattern ?  i have a one String name ="rajesh" i want to print pattern like r * ra ** raj raje rajes rajesh please help me
how to print - Java Beginners
how to print  how to print something on console without using System.out.print() method ?  Hi Friend, You can use PrintWriter to write anything on the console. import java.io.*; public class Print{ public static
UIButton selector
UIButton selector  Hi, How to add selector to perform something when UIButton is clicked? Thanks
how to print the following pattern
how to print the following pattern  Hello hEllo heLlo helLo hellO pls reply soon its an emergency   class StringPattern { public static void main(String[] args) { String st="hello
how to print pdf format
how to print pdf format  Hi every body iam doing school project iam using backend as oracle front end java .how to print student marks list /attendence in pdf format. please help me. thanks in advance.   Here
UIButton checkbox
UIButton checkbox  iPhone UIButton checkbox example required.. can any one please explain me.. how to create a checkbox button using UIButton in XIB
how to validate national ID number
how to validate national ID number  hey guys, plz send me a code how to vlaidate national ID number using jtextfield. in ID num thers 9 numbers +V.the V letter is included at the end of the numbers. ex:123456789V i don knw how
UIButton Image Change
UIButton Image Change In this series of iPhone UIButton examples, we are going to discuss about UIButton and how to get the image changed on button clicks... but... in this UIButton example everything is done programmatically from creating
How to design a foot print on the sand, print on the sand, print
How to design a foot print on the sand       You might have seen foot prints on the sand field. Do you think, it can be design in the photoshop, yes I have done here. I have used
how to print JInternal frame component ?
how to print JInternal frame component ?  hello sir, i devalop a swing application .but problem is that how display report & print it. some data prefech from database & keep to jtable but how it is print with table
How can print integer in method
How can print integer in method   a method call process public process(int jobid,int remain){ } how to print int jobid ,int remain in for loop jobid in proc[0],remain in proc[1],both show in text file how to print proc[0
Getting UIButton by Tag
Getting UIButton by Tag  Example code for getting the UIButton by id.   Hi, You can use the following code: UIButton *myBtn = (UIButton *)[self.view viewWithTag:1]; Thanks
how to print headings horizontally in jsp
how to print headings horizontally in jsp  In one of my jsp i have used for loop. in every iteration it will fetch value from db and print it on heading section, it prints vertically but my requirement is to print it horizontally
How to print current time in r?
How to print current time in r?  Hi, I am learning and want to print current date and time on console. How to print current time in R Programming? Thanks   Hi, You should use Sys.time() for getting current date
How to print the following pattern in java?
How to print the following pattern in java?  How to print the following pattern in java? he he is he is going he is going in   import java.io.*; class StringPattern { public static void main(String[] args
UIButton background image
UIButton background image  Hi, How to create uibutton with background image? Thanks
UIButton Highlighted
UIButton Highlighted  Hi, I am writing an iPhone application. I have to show UIButton Highlighted form my code. Tell me how to make an UIButton Highlighted from Objective C code? Thanks   Hi, Use the appropriate
UIButton custom programmatically
UIButton custom programmatically  Hi, Please tell me how I can create custom UIButton programmatically? Tell me the best code for uibutton custom... UIButton programmatic ally. UIButton *myButton = [UIButton buttonWithType
how to print of hours and minutes of 8725 seconds
how to print of hours and minutes of 8725 seconds  how to print of hours and minutes of 8725 seconds

Ads

 
Advertisement null

Ads