Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrew D'Abbraccio
PLUC Inventory - Senior Design
Commits
aa089a59
Commit
aa089a59
authored
Feb 26, 2015
by
Alex Moore
Browse files
added upside down rotation
parent
b7dbb6c5
Changes
6
Hide whitespace changes
Inline
Side-by-side
UI-Iteration3/.DS_Store
0 → 100644
View file @
aa089a59
File added
UI-Iteration3/PLUCdraft/.DS_Store
View file @
aa089a59
No preview for this file type
UI-Iteration3/PLUCdraft/PLUCdraft/LogInViewController.m
View file @
aa089a59
...
...
@@ -36,6 +36,20 @@ static NSString *PASSWORD = @"what";
}
//allow app to flip to upside down
-
(
BOOL
)
shouldAutorotateToInterfaceOrientation
:(
UIInterfaceOrientation
)
toInterfaceOrientation
{
if
(
toInterfaceOrientation
==
UIInterfaceOrientationPortrait
)
return
YES
;
if
(
toInterfaceOrientation
==
UIInterfaceOrientationPortraitUpsideDown
)
return
YES
;
if
(
toInterfaceOrientation
==
UIInterfaceOrientationLandscapeLeft
)
return
NO
;
if
(
toInterfaceOrientation
==
UIInterfaceOrientationLandscapeRight
)
return
NO
;
return
NO
;
// Unknown value
}
/*
#pragma mark - Navigation
...
...
UI-Iteration3/PLUCdraft/PLUCdraft/ScanBookViewController.m
View file @
aa089a59
...
...
@@ -49,6 +49,20 @@ static int BOOK_ID_LENGTH = 14;
// Dispose of any resources that can be recreated.
}
//allow app to flip to upside down
-
(
BOOL
)
shouldAutorotateToInterfaceOrientation
:(
UIInterfaceOrientation
)
toInterfaceOrientation
{
if
(
toInterfaceOrientation
==
UIInterfaceOrientationPortrait
)
return
YES
;
if
(
toInterfaceOrientation
==
UIInterfaceOrientationPortraitUpsideDown
)
return
YES
;
if
(
toInterfaceOrientation
==
UIInterfaceOrientationLandscapeLeft
)
return
NO
;
if
(
toInterfaceOrientation
==
UIInterfaceOrientationLandscapeRight
)
return
NO
;
return
NO
;
// Unknown value
}
#pragma mark - Navigation
...
...
UI-Iteration3/PLUCdraft/PLUCdraft/SectionTableViewController.m
View file @
aa089a59
...
...
@@ -51,6 +51,20 @@
// Dispose of any resources that can be recreated.
}
//allow app to flip to upside down
-
(
BOOL
)
shouldAutorotateToInterfaceOrientation
:(
UIInterfaceOrientation
)
toInterfaceOrientation
{
if
(
toInterfaceOrientation
==
UIInterfaceOrientationPortrait
)
return
YES
;
if
(
toInterfaceOrientation
==
UIInterfaceOrientationPortraitUpsideDown
)
return
YES
;
if
(
toInterfaceOrientation
==
UIInterfaceOrientationLandscapeLeft
)
return
NO
;
if
(
toInterfaceOrientation
==
UIInterfaceOrientationLandscapeRight
)
return
NO
;
return
NO
;
// Unknown value
}
#pragma mark - Table view data source
-
(
NSInteger
)
numberOfSectionsInTableView
:(
UITableView
*
)
tableView
{
...
...
UI-Iteration3/PLUCdraft/PLUCdraft/SettingsViewController.m
View file @
aa089a59
...
...
@@ -33,6 +33,19 @@
// Dispose of any resources that can be recreated.
}
//allow app to flip to upside down
-
(
BOOL
)
shouldAutorotateToInterfaceOrientation
:(
UIInterfaceOrientation
)
toInterfaceOrientation
{
if
(
toInterfaceOrientation
==
UIInterfaceOrientationPortrait
)
return
YES
;
if
(
toInterfaceOrientation
==
UIInterfaceOrientationPortraitUpsideDown
)
return
YES
;
if
(
toInterfaceOrientation
==
UIInterfaceOrientationLandscapeLeft
)
return
NO
;
if
(
toInterfaceOrientation
==
UIInterfaceOrientationLandscapeRight
)
return
NO
;
return
NO
;
// Unknown value
}
#pragma mark - Navigation
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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