[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

how do I get a button by tag in objective c?

Posted on 2012-09-04
7
Medium Priority
?
690 Views
Last Modified: 2012-10-25
all buttons have the same action and unique tags, how do I identify the button by tag?
0
Comment
Question by:charmingduck
  • 3
  • 2
5 Comments
 
LVL 20

Expert Comment

by:darbid73
ID: 38367243
HI charmingduck

most objects have a tag property  this is because they all a UIViews, but you need to give the tag property a value at design time or when you add it dynamically.

Then it is just "myview.tag"  or "myButton.tag"
0
 

Author Comment

by:charmingduck
ID: 38390315
seriously? you can give a button a tag value?
0
 
LVL 20

Accepted Solution

by:
darbid73 earned 520 total points
ID: 38390462
0
 

Author Comment

by:charmingduck
ID: 38510323
I've requested that this question be deleted for the following reason:

the answer is not correct
0
 
LVL 20

Expert Comment

by:darbid73
ID: 38510324
If the answer is not correct - are you telling us the linked answers are also wrong?
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I'm going to cover the basics and usages of NSInvocation. What is NSInvocation? Apple Developer Reference describes NSInvocation this way: An NSInvocation is an Objective-C message rendered static, that is, it is an action tur…
The release of the iPhone 6 and the iPhone 6 Plus was extremely successful for Apple. However when iOS 8.1 was introduced, many iPhone users complained of quick battery drainage. Without even knowing, you may be unnecessarily using up your battery p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question