Skip to content
Snippets Groups Projects
Commit c3686108 authored by Moritz Walter's avatar Moritz Walter Committed by m0ritz
Browse files

small Gamification changes

parent 0f0f5086
No related branches found
No related tags found
1 merge request!4Gamification 2
...@@ -206,7 +206,7 @@ ...@@ -206,7 +206,7 @@
<color key="trackTintColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/> <color key="trackTintColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
</progressView> </progressView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="xx %" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GoG-8X-ar5"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="xx %" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GoG-8X-ar5">
<rect key="frame" x="333.5" y="70.5" width="25.5" height="16"/> <rect key="frame" x="333.5" y="72" width="25.5" height="14.5"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/> <fontDescription key="fontDescription" type="system" pointSize="12"/>
<nil key="textColor"/> <nil key="textColor"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
...@@ -542,6 +542,7 @@ ...@@ -542,6 +542,7 @@
</constraints> </constraints>
<state key="normal" title="Invite Friend"/> <state key="normal" title="Invite Friend"/>
<connections> <connections>
<action selector="invitePressed:" destination="Wkg-91-waa" eventType="touchUpInside" id="lR2-IE-UOy"/>
<segue destination="13h-dZ-sew" kind="show" identifier="send" id="RKN-iB-gAm"/> <segue destination="13h-dZ-sew" kind="show" identifier="send" id="RKN-iB-gAm"/>
</connections> </connections>
</button> </button>
......
...@@ -166,6 +166,15 @@ class GamificationStatusViewController: UIViewController, UITableViewDelegate, U ...@@ -166,6 +166,15 @@ class GamificationStatusViewController: UIViewController, UITableViewDelegate, U
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
tableView.deselectRow(at: indexPath, animated: false) tableView.deselectRow(at: indexPath, animated: false)
if indexPath.row > 0 {
// hier die weiterleitung zu den accounteinstellungen einfügen
let alert = UIAlertController(title: NSLocalizedString("Information", comment: "Information title in Alert view") , message: NSLocalizedString("Function currently not implemented", comment: "information message in alert view gamification status view"), preferredStyle: .alert)
let ok = UIAlertAction(title: NSLocalizedString("Ok", comment: "Ok button"), style: .default , handler: nil)
alert.addAction(ok)
self.present(alert, animated: true, completion: nil)
}
} }
......
...@@ -196,6 +196,22 @@ class InviteFriendViewController: UIViewController, UITableViewDataSource, UITab ...@@ -196,6 +196,22 @@ class InviteFriendViewController: UIViewController, UITableViewDataSource, UITab
} }
} }
@IBAction func invitePressed(_ sender: Any) {
if self.selectedContact != nil {
self.performSegue(withIdentifier: "send", sender: self)
} else {
let alert = UIAlertController(title: NSLocalizedString("Information", comment: "Information title in Alert view") , message: NSLocalizedString("Please select contact", comment: "information message in alert view"), preferredStyle: .alert)
let ok = UIAlertAction(title: NSLocalizedString("Ok", comment: "Ok button"), style: .default , handler: nil)
alert.addAction(ok)
self.present(alert, animated: true, completion: nil)
}
}
// MARK: - Navigation // MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation // In a storyboard-based application, you will often want to do a little preparation before navigation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment