Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Licence Update

  • Loading branch information...
commit e43c5cf88c5246a0882486a609a59aba4494f45c 1 parent 8da66fa
@ShadyElyaski authored
View
7 LICENSE
@@ -0,0 +1,7 @@
+Copyright (c) 2012 Shady Elyaski
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
BIN  ..._Sample.xcodeproj/project.xcworkspace/xcuserdata/shadyelyaski.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown
View
10 SEFilterControl_Sample/ViewController.m
@@ -20,12 +20,12 @@ - (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
- SEFilterControl *filter = [[SEFilterControl alloc]initWithFrame:CGRectMake(10, 20, 300, 80) Titles:[NSArray arrayWithObjects:@"Articles", @"Latest", @"Featured", @"Oldest", @"BlaBla", @"Mash", nil]];
+ SEFilterControl *filter = [[SEFilterControl alloc]initWithFrame:CGRectMake(10, 20, 300, 80) Titles:[NSArray arrayWithObjects:@"Articles", @"News", @"Updates", @"Featured", @"Newest", @"Oldest", nil]];
[filter addTarget:self action:@selector(filterValueChanged:) forControlEvents:UIControlEventValueChanged];
[self.view addSubview:filter];
[filter release];
- filter = [[SEFilterControl alloc]initWithFrame:CGRectMake(30, 120, 260, 60) Titles:[NSArray arrayWithObjects:@"Articles", @"Latest", @"Featured", @"Mash", nil]];
+ filter = [[SEFilterControl alloc]initWithFrame:CGRectMake(30, 120, 260, 60) Titles:[NSArray arrayWithObjects:@"Articles", @"Latest", @"Featured", @"Oldest", nil]];
[filter setProgressColor:[UIColor lightGrayColor]];
[filter setHandlerColor:[UIColor darkGrayColor]];
[filter setTitlesColor:[UIColor blackColor]];
@@ -56,11 +56,7 @@ - (void)didReceiveMemoryWarning
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
- if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
- return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
- } else {
- return YES;
- }
+ return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
- (void)dealloc {
Please sign in to comment.
Something went wrong with that request. Please try again.