Skip to content
Permalink
Browse files

Watermark

  • Loading branch information...
aaronbrethorst committed May 16, 2011
1 parent 4d86d7b commit ab4ff1a54a2757ad65bf50b4e29546564059e00a
BIN +6 KB .DS_Store
Binary file not shown.
@@ -13,6 +13,7 @@
#import "StackScrollViewController.h"
#import "MenuTableViewCell.h"
#import "MenuHeaderView.h"
#import "MenuWatermarkFooter.h"

#define kCellText @"CellText"
#define kCellImage @"CellImage"
@@ -44,6 +45,7 @@ - (id)initWithFrame:(CGRect)frame {
_tableView.dataSource = self;
_tableView.backgroundColor = [UIColor clearColor];
_tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
_tableView.tableFooterView = [[[MenuWatermarkFooter alloc] initWithFrame:CGRectMake(0, 0, 200, 80)] autorelease];
[self.view addSubview:_tableView];
}
return self;
@@ -0,0 +1,15 @@
//
// MenuWatermarkFooter.h
// StackScrollView
//
// Created by Aaron Brethorst on 5/15/11.
// Copyright 2011 Structlab LLC. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface MenuWatermarkFooter : UIView
{
}

@end
@@ -0,0 +1,31 @@
//
// MenuWatermarkFooter.m
// StackScrollView
//
// Created by Aaron Brethorst on 5/15/11.
// Copyright 2011 Structlab LLC. All rights reserved.
//

#import "MenuWatermarkFooter.h"

@implementation MenuWatermarkFooter

- (id)initWithFrame:(CGRect)aRect
{
if ((self = [super initWithFrame:aRect]))
{
UIView* topLine = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 1)];
topLine.backgroundColor = [UIColor colorWithWhite:0.5 alpha:0.25];
[self addSubview:topLine];
[topLine release];

UIImageView *watermark = [[UIImageView alloc] initWithFrame:CGRectMake(0, 1, 200, 79)];
watermark.contentMode = UIViewContentModeCenter;
watermark.image = [UIImage imageNamed:@"watermark.png"];
[self addSubview:watermark];
[watermark release];
}
return self;
}

@end
@@ -15,6 +15,9 @@
28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; };
937FAFAC1380B52D00507E51 /* MenuHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = 937FAFAB1380B52D00507E51 /* MenuHeaderView.m */; };
937FAFB51380B7B600507E51 /* avatar.png in Resources */ = {isa = PBXBuildFile; fileRef = 937FAFB41380B7B600507E51 /* avatar.png */; };
937FAFFF1380BF5C00507E51 /* MenuWatermarkFooter.m in Sources */ = {isa = PBXBuildFile; fileRef = 937FAFFE1380BF5C00507E51 /* MenuWatermarkFooter.m */; };
937FB0011380C02100507E51 /* watermark.png in Resources */ = {isa = PBXBuildFile; fileRef = 937FB0001380C02100507E51 /* watermark.png */; };
937FB00D1380C53100507E51 /* tweets.plist in Resources */ = {isa = PBXBuildFile; fileRef = 937FB00C1380C53100507E51 /* tweets.plist */; };
93D1B7DD1380626C0094D5A5 /* RoundedUITableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 93D1B7DC1380626C0094D5A5 /* RoundedUITableView.m */; };
93D1BA6F138098FF0094D5A5 /* 06-magnify.png in Resources */ = {isa = PBXBuildFile; fileRef = 93D1BA69138098FF0094D5A5 /* 06-magnify.png */; };
93D1BA70138098FF0094D5A5 /* 08-chat.png in Resources */ = {isa = PBXBuildFile; fileRef = 93D1BA6A138098FF0094D5A5 /* 08-chat.png */; };
@@ -47,6 +50,10 @@
937FAFAA1380B52D00507E51 /* MenuHeaderView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MenuHeaderView.h; sourceTree = "<group>"; };
937FAFAB1380B52D00507E51 /* MenuHeaderView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MenuHeaderView.m; sourceTree = "<group>"; };
937FAFB41380B7B600507E51 /* avatar.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = avatar.png; sourceTree = "<group>"; };
937FAFFD1380BF5C00507E51 /* MenuWatermarkFooter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MenuWatermarkFooter.h; sourceTree = "<group>"; };
937FAFFE1380BF5C00507E51 /* MenuWatermarkFooter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MenuWatermarkFooter.m; sourceTree = "<group>"; };
937FB0001380C02100507E51 /* watermark.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = watermark.png; sourceTree = "<group>"; };
937FB00C1380C53100507E51 /* tweets.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = tweets.plist; sourceTree = "<group>"; };
93D1B7DB1380626C0094D5A5 /* RoundedUITableView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RoundedUITableView.h; sourceTree = "<group>"; };
93D1B7DC1380626C0094D5A5 /* RoundedUITableView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RoundedUITableView.m; sourceTree = "<group>"; };
93D1BA69138098FF0094D5A5 /* 06-magnify.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "06-magnify.png"; sourceTree = "<group>"; };
@@ -106,6 +113,8 @@
93D1BA8413809B570094D5A5 /* MenuTableViewCell.m */,
937FAFAA1380B52D00507E51 /* MenuHeaderView.h */,
937FAFAB1380B52D00507E51 /* MenuHeaderView.m */,
937FAFFD1380BF5C00507E51 /* MenuWatermarkFooter.h */,
937FAFFE1380BF5C00507E51 /* MenuWatermarkFooter.m */,
);
path = Classes;
sourceTree = "<group>";
@@ -143,6 +152,8 @@
29B97317FDCFA39411CA2CEA /* Resources */ = {
isa = PBXGroup;
children = (
937FB00C1380C53100507E51 /* tweets.plist */,
937FB0001380C02100507E51 /* watermark.png */,
937FAFB41380B7B600507E51 /* avatar.png */,
93D1BAD213809E780094D5A5 /* glow.png */,
C1D438961317D30A00D5EE69 /* backgroundImage_repeat.png */,
@@ -243,6 +254,8 @@
93D1BA73138098FF0094D5A5 /* 22-skull-n-bones.png in Resources */,
93D1BAD313809E780094D5A5 /* glow.png in Resources */,
937FAFB51380B7B600507E51 /* avatar.png in Resources */,
937FB0011380C02100507E51 /* watermark.png in Resources */,
937FB00D1380C53100507E51 /* tweets.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -263,6 +276,7 @@
93D1B7DD1380626C0094D5A5 /* RoundedUITableView.m in Sources */,
93D1BA8513809B570094D5A5 /* MenuTableViewCell.m in Sources */,
937FAFAC1380B52D00507E51 /* MenuHeaderView.m in Sources */,
937FAFFF1380BF5C00507E51 /* MenuWatermarkFooter.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

0 comments on commit ab4ff1a

Please sign in to comment.
You can’t perform that action at this time.