mirror of
https://github.com/zhigang1992/ZGParallelView.git
synced 2026-01-12 22:42:52 +08:00
Add a subImage to it
This commit is contained in:
@@ -309,6 +309,7 @@
|
||||
04480000169B04E500B99646 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -33,8 +33,6 @@
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
Reference in New Issue
Block a user