Skip to content

Commit

Permalink
Fix codes not getting saved
Browse files Browse the repository at this point in the history
  • Loading branch information
ktg committed Feb 12, 2016
1 parent c309773 commit ea1e979
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Artcodes/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>3.0.2</string>
<string>3.0.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -60,7 +60,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>218</string>
<string>219</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
Expand Down
24 changes: 8 additions & 16 deletions Artcodes/src/view/ActionEditViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -169,24 +169,16 @@ class ActionEditViewController: UIViewController, UITextFieldDelegate
action.url = nil
}
}
else
else if textField.keyboardType == .NumbersAndPunctuation
{

if action.codes.count > (textField.tag - 1) && textField.tag != 0
{
if let code = textField.text
{
action.codes[textField.tag - 1] = code
}
}
}
// else if textField == actionCode
// {
// if let code = textFromField(textField)
// {
// if action.codes.count > 0
// {
// action.codes[0] = code
// }
// else
// {
// action.codes.append(code)
// }
// }
// }
}

func createCodeEdits()
Expand Down

0 comments on commit ea1e979

Please sign in to comment.