Skip to content

Commit

Permalink
- Removed hardcoding from UIQuerySegmentedControl
Browse files Browse the repository at this point in the history
- Updated helper methods to just return the "touch" as pre Brian's suggestion


git-svn-id: http://uispec.googlecode.com/svn/trunk@67 63d4da46-1340-11de-a72a-edd3f5372759
  • Loading branch information
Cory.M.Smith authored and Cory.M.Smith committed Jan 6, 2010
1 parent 3c7f8c9 commit 499cae9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/components/UIQuerySegmentedControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
@implementation UIQuerySegmentedControl

-(UIQuery *)selectSegmentWithText:(NSString *)text {
[[self.label text:@"TV"] touch];
return [UIQuery withViews:views className:className];
return [[self.label text:text] touch];
}

@end
3 changes: 1 addition & 2 deletions src/components/UIQueryTabBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
@implementation UIQueryTabBar

-(UIQuery *)selectTabWithTitle:(NSString *)tabTitle {
[[[self.label text:tabTitle] parent] touch];
return [UIQuery withViews:views className:className];
return [[[self.label text:tabTitle] parent] touch];
}

@end

0 comments on commit 499cae9

Please sign in to comment.