• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best way to bind (potentially arbitrarily) large array of buttons?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to bind (potentially arbitrarily) large array of buttons?


  • Subject: Re: Best way to bind (potentially arbitrarily) large array of buttons?
  • From: Dave <email@hidden>
  • Date: Wed, 27 Jul 2016 12:52:19 +0100

Hi,

> That sounds like a really good idea. Here's the only problem: VoiceOver support. If I have no physical objects, how could VO users navigate the board? My first thought is to simulate everything, by using a directInput view and then adding gesture recognizers for all the VO gestures I want to support. Actually, this method has a couple of advantages, like supporting swiping up or down to move by row, whereas normal UIButtons would have the user swiping left/right a ton of times. But is there another way I'm missing? The more I think about this, the more I like it! As you said, scalable, far easier to manage, and cleaner.


How about you create a UIView as a “Container” View and then add newly created UIButtons to this view using addSubview. You’d position them by change there frame to be in the correct position relative to the “Board”, e.g. Assuming the UIButton has a fixed size of 40,40, then the first ones FrameRect might be 0,0,40,40 the second at 40,0,40,40. the first at 80,0,40,40, etc.

Cheers
Dave

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Best way to bind (potentially arbitrarily) large array of buttons? (From: Alex Hall <email@hidden>)
 >Re: Best way to bind (potentially arbitrarily) large array of buttons? (From: Roland King <email@hidden>)
 >Re: Best way to bind (potentially arbitrarily) large array of buttons? (From: Alex Hall <email@hidden>)

  • Prev by Date: Re: Reading a crash log
  • Next by Date: Xcode updates, Apple updates
  • Previous by thread: Re: Best way to bind (potentially arbitrarily) large array of buttons?
  • Next by thread: Reading a crash log
  • Index(es):
    • Date
    • Thread