[nfbcs] Help with card game in swift

Jessica Dail jldail13 at gmail.com
Thu Apr 6 17:20:55 UTC 2017


Hi,
What's the name of your "dice app?"

Is it accessible?
Does it cost?

Thanks,
Jessica
On Apr 6, 2017 12:46 PM, "Andy B. via nfbcs" <nfbcs at nfbnet.org> wrote:
>
> Consider not using a self-voicing app. Use Voiceover's ability to handle accessibility features out of the box. For example, my dice app uses die faces as jpg images inside of a UIImage control. All I need to do is set the alt text to the number displayed on the die face in the image. Use the same for your cards.
>
> -----Original Message-----
> From: nfbcs [mailto:nfbcs-bounces at nfbnet.org] On Behalf Of Taylor Arndt via nfbcs
> Sent: Thursday, April 6, 2017 12:42 PM
> To: NFB in Computer Science Mailing List <nfbcs at nfbnet.org>
> Cc: Taylor Arndt <taylorarndt99 at gmail.com>
> Subject: [nfbcs] Help with card game in swift
>
> Hi, i am making an accessible cardgame for the blind in swift. I am doing quite well, but having issues implamenting text to speech. I get some errors about the viewcontroler not having a member of synthh and also an error about can't convert card names to string i would really love help, because making this accessible has been the hardest part.
> here is myy code.
>
> //
> //  ViewController.swift
> //  Accessible War Game
> //
> //  Created by Taylor Arndt on 3/31/17.
> //  Copyright © 2017 ?Tays apps. All rights reserved.
> //
>
> import UIKit
>
> import AVFoundation
> class ViewController: UIViewController {
>
>     override func viewDidLoad() {
>         super.viewDidLoad()
>         // Do any additional setup after loading the view, typically from a nib.
>     }
> @IBOutlet weak var computer:UILabel!
> @IBOutlet weak var leftimageview:UIImageView!
>     @IBOutlet weak var rightimageview:UIImageView!
> @IBOutlet weak var player:UILabel!
> @IBOutlet weak var deal:UIButton!
> @IBAction func DealTapped(_sender: UIButton)  { leftimageview.image = UIImage(named:"card10") let synth = AVSpeechSynthesizer() var myUtterance = AVSpeechUtterance(string: "") var cardNamesArray:[String] = ["card2", "card3", "card4", "card5", "card6", "card7",  "card8", "card9", "card10", "jack", "queen", "king", "ace"]
>     myUtterance = AVSpeechUtterance(string: cardNames)
> self.synth.speak(myUtterance)
> }
>
> }
>
> }
>
> --
> Taylor
>
> _______________________________________________
> nfbcs mailing list
> nfbcs at nfbnet.org
> http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
> To unsubscribe, change your list options or get your account info for nfbcs:
> http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/sonfire11%40gmail.com
>
> _______________________________________________
> nfbcs mailing list
> nfbcs at nfbnet.org
> http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
> To unsubscribe, change your list options or get your account info for nfbcs:
> http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/jldail13%40gmail.com


More information about the NFBCS mailing list