Last active
December 27, 2015 08:09
-
-
Save charlesmchen/7294435 to your computer and use it in GitHub Desktop.
Revisions
-
charlesmchen revised this gist
Nov 3, 2013 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,6 +8,5 @@ headerView.opaque = NO; setHMargin:10] setVMargin:5] setHAlign:H_ALIGN_RIGHT]; [[rootView addSubviewWithCustomLayout:[headerView setHStretches]] setVAlign:V_ALIGN_TOP]; -
charlesmchen revised this gist
Nov 3, 2013 . 1 changed file with 0 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,16 +1,13 @@ WeView *headerView = [[WeView alloc] init]; headerView.backgroundColor = [UIColor colorWithWhite:0.5f alpha:0.5f]; headerView.opaque = NO; [[headerView addSubviewWithCustomLayout:[DemoFactory createLabel:@"Ferdinand Hodler" fontSize:20.f]] setMargin:5]; [[[[headerView addSubviewWithCustomLayout:[DemoFactory buttonWithImageName:@"Glyphish_Icons/14-tag.png"]] setHMargin:10] setVMargin:5] setHAlign:H_ALIGN_RIGHT]; [[rootView addSubviewWithCustomLayout:[headerView setHStretches]] setVAlign:V_ALIGN_TOP]; -
charlesmchen created this gist
Nov 3, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ WeView *headerView = [[WeView alloc] init]; headerView.backgroundColor = [UIColor colorWithWhite:0.5f alpha:0.5f]; headerView.opaque = NO; // Add "title" UILabel to header. [[headerView addSubviewWithCustomLayout:[DemoFactory createLabel:@"Ferdinand Hodler" fontSize:20.f]] setMargin:5]; // Add "tag" button to header. [[[[headerView addSubviewWithCustomLayout:[DemoFactory buttonWithImageName:@"Glyphish_Icons/14-tag.png"]] setHMargin:10] setVMargin:5] setHAlign:H_ALIGN_RIGHT]; // Add header to top of screen. [[rootView addSubviewWithCustomLayout:[headerView setHStretches]] setVAlign:V_ALIGN_TOP];