スマホHack!

iOS スウィフト モーダル警告電子メールの検証

スマホ関連の海外ニュースです。

私はスイフト、iOS、Xcode と初心者です。私はクラス割当の Xcode 7 でストーリー ボードを行う複数のシーンのグレーディング アプリに取り組んでいます。私のシーンでは登録ページにあるし、私は電子メールを検証する必要があります。 ここでは私が持っているもの、登録ページに関連するビューのコント ローラーの次のコードは、フィールドごとに店舗が存在します。私は shouldperformseguewithidentifier を使用して、許可または行われて – 動作していないから登録ボタンの話題を禁止にしようとしています。しかし、私は、遊び場でテストして手動でそれを見ることができますので、電子メール検証メソッドが動作して知っています。アプリを実行するの話題はメール本文の妥当性に関係なくメニューに右に行きます。実際の値は、テキスト フィールドから来ているかととても確信ではないです。Print ステートメントを使用して、チェックしたいと思いますが、私はシミュレータでテストしながら出力を表示する場所とはわからない。 ないエラーや警告を生成次のコードの目的の結果は、メールが有効な場合の話題を停止するようにし、UIAlertController を使用してモーダル警告を提示します。
続きを読む…

iOS Email Validation with modal alert in Swift

I am a beginner with Swift, iOS, and Xcode. I am working on a multi-scene grading app done through a storyboard in Xcode 7 for a class assignment. One of my scenes is a register page and I need to validate the email. Here’s what I have, the following code is on the view controller that pertains to the register page and outlets exist for each field. I am trying to use shouldperformseguewithidentifier to either allow or prevent the segue on the register button from taking place – not working.
Read more…

facebooktwittergoogle_plusredditpinterestlinkedinmail

Comments are closed.