Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PLUC Inventory - Senior Design
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Andrew D'Abbraccio
PLUC Inventory - Senior Design
Commits
10ce7b38
Commit
10ce7b38
authored
Mar 22, 2015
by
Drewdabb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
saturdaylibrary testing m9
parent
b1b13488
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
13 deletions
+24
-13
UI-Iteration3/.DS_Store
UI-Iteration3/.DS_Store
+0
-0
UI-Iteration3/PLUCdraft/.DS_Store
UI-Iteration3/PLUCdraft/.DS_Store
+0
-0
UI-Iteration3/PLUCdraft/PLUCdraft/.DS_Store
UI-Iteration3/PLUCdraft/PLUCdraft/.DS_Store
+0
-0
UI-Iteration3/PLUCdraft/PLUCdraft/Main.storyboard
UI-Iteration3/PLUCdraft/PLUCdraft/Main.storyboard
+1
-0
UI-Iteration3/PLUCdraft/PLUCdraft/ScanBookViewController.m
UI-Iteration3/PLUCdraft/PLUCdraft/ScanBookViewController.m
+23
-13
No files found.
UI-Iteration3/.DS_Store
View file @
10ce7b38
No preview for this file type
UI-Iteration3/PLUCdraft/.DS_Store
View file @
10ce7b38
No preview for this file type
UI-Iteration3/PLUCdraft/PLUCdraft/.DS_Store
View file @
10ce7b38
No preview for this file type
UI-Iteration3/PLUCdraft/PLUCdraft/Main.storyboard
View file @
10ce7b38
...
...
@@ -217,6 +217,7 @@
<textInputTraits
key=
"textInputTraits"
/>
<connections>
<action
selector=
"txtChange:"
destination=
"chc-VY-Gqa"
eventType=
"editingChanged"
id=
"8Fd-OM-q60"
/>
<action
selector=
"txtChange:"
destination=
"chc-VY-Gqa"
eventType=
"valueChanged"
id=
"rNI-lq-ipd"
/>
</connections>
</textField>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"default"
allowsSelectionDuringEditing=
"YES"
rowHeight=
"44"
sectionHeaderHeight=
"22"
sectionFooterHeight=
"22"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"HXe-Ct-PRX"
>
...
...
UI-Iteration3/PLUCdraft/PLUCdraft/ScanBookViewController.m
View file @
10ce7b38
...
...
@@ -228,8 +228,8 @@ static int BOOK_ID_LENGTH = 14;
});
});
}
//31172001492867
-
(
IBAction
)
txtChange
:(
id
)
sender
{
-
(
void
)
barcodeTextChanged
{
NSCharacterSet
*
notDigits
=
[[
NSCharacterSet
decimalDigitCharacterSet
]
invertedSet
];
if
(
self
.
txtBookID
.
text
.
length
==
BOOK_ID_LENGTH
)
{
//string is proper length
if
([
self
.
txtBookID
.
text
rangeOfCharacterFromSet
:
notDigits
].
location
==
NSNotFound
)
{
//string is numeric
...
...
@@ -249,16 +249,16 @@ static int BOOK_ID_LENGTH = 14;
[
self
.
webview
stringByEvaluatingJavaScriptFromString
:
inputCode
];
[
self
.
webview
stringByEvaluatingJavaScriptFromString
:
scan
];
// //randomly generate errors
// int random = arc4random() % 10;
// if(random < 5) {
// //green check
// [self changeCheckImage];
//
// } else {
// //red x
// [self changeXImage];
// }
// //randomly generate errors
// int random = arc4random() % 10;
// if(random < 5) {
// //green check
// [self changeCheckImage];
//
// } else {
// //red x
// [self changeXImage];
// }
NSLog
(
@"ID accepted"
);
self
.
view
.
backgroundColor
=
[
UIColor
greenColor
];
[
UIView
animateWithDuration
:
1
.
0
animations
:
^
{
...
...
@@ -282,7 +282,7 @@ static int BOOK_ID_LENGTH = 14;
// delegate:self
// cancelButtonTitle:@"OK"
// otherButtonTitles:nil];
//
//
// [previousScan show];
[
self
extractInformation
:
scanned
];
}
else
{
...
...
@@ -296,6 +296,16 @@ static int BOOK_ID_LENGTH = 14;
}
}
//31172001492867
-
(
IBAction
)
txtChange
:(
id
)
sender
{
[
self
barcodeTextChanged
];
}
-
(
void
)
decoderDataReceived
:(
NSString
*
)
data
{
[
super
decoderDataReceived
:
data
];
[
self
barcodeTextChanged
];
}
-
(
IBAction
)
clickedFinish
:(
id
)
sender
{
NSString
*
path
=
[[
NSBundle
mainBundle
]
pathForResource
:
@"WhatPage"
ofType
:
@"js"
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment