Skip to content

Instantly share code, notes, and snippets.

@charlesmchen
Last active December 27, 2015 08:09
Show Gist options
  • Select an option

  • Save charlesmchen/7294435 to your computer and use it in GitHub Desktop.

Select an option

Save charlesmchen/7294435 to your computer and use it in GitHub Desktop.

Revisions

  1. charlesmchen revised this gist Nov 3, 2013. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion WeView Sample
    Original 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];
  2. charlesmchen revised this gist Nov 3, 2013. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions WeView Sample
    Original 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;
    // 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];
  3. charlesmchen created this gist Nov 3, 2013.
    16 changes: 16 additions & 0 deletions WeView Sample
    Original 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];