Add a subImage to it

This commit is contained in:
Kyle Fang
2013-02-26 10:44:45 +08:00
parent 53c97c78d6
commit 86f3fa288a
3 changed files with 8 additions and 2 deletions

View File

@@ -309,6 +309,7 @@
04480000169B04E500B99646 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};

View File

@@ -32,6 +32,8 @@
}
- (IBAction)SwitchParallelViewStyle:(UISegmentedControl *)sender {
ZGScrollViewStyle PVStyle = nil;
switch (sender.selectedSegmentIndex) {
@@ -69,6 +71,11 @@
self.headerScrollView.scrollsToTop = NO;
[self.avatar.layer setCornerRadius:5.f];
[self.avatar.layer setMasksToBounds:YES];
//Add a second View when using stick to the top
UIImageView *avatarView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 320*(0.8-1), 320, 320)];
[avatarView setImage:[UIImage imageNamed:@"ZG"]];
[self.tableView insertSubview:avatarView aboveSubview:self.tableView.backgroundView];
}
- (void)darkerTheBackground:(CGFloat)xOffSet{

View File

@@ -33,8 +33,6 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>