Comments (16)
+1
from ltnavigationbar.
@ltebean Could you please help me with this issue?
from ltnavigationbar.
@steffimueller I guess it is due to the table view position, did you put it behind the navbar or under the navbar? Could you share the entire project to me, since that will make it easy to find out what's wrong with it
from ltnavigationbar.
@ltebean Thanks for help. Here is the project:
https://github.com/steffimueller/LTNavigationBar-TestProject
from ltnavigationbar.
I suppose it is just a small thing. :-)
from ltnavigationbar.
just set the topView as the table header view: tableView.tableHeaderView = topView
from ltnavigationbar.
I tried this before like here:
override func viewDidLoad() {
super.viewDidLoad()
self.navigationItem.setLeftBarButtonItem(UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.Cancel, target: self, action: "sdfsdf"), animated: true)
self.tableView.delegate = self
self.tableView.dataSource = self
self.tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: cellIndentifier)
self.navigationController?.navigationBar.lt_setBackgroundColor(UIColor.clearColor())
tableView.autoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleWidth
topView = UIView(frame: CGRectMake(0, 0, 320, 212))
topView.contentMode = UIViewContentMode.ScaleToFill
topView.autoresizesSubviews = true
topView.backgroundColor = UIColor.yellowColor()
// topView.clipsToBounds = true
tableView.tableHeaderView = topView
// tableView.backgroundView = testView
// tableView.addSubview(topView)
let img = UIImage(named: "bg")
topImageView = UIImageView(image: img)
topImageView?.frame = CGRectMake(0, -89, 320, 307)
topImageView?.contentMode = UIViewContentMode.ScaleToFill
topView.addSubview(topImageView!)
// topView.superview?.sendSubviewToBack(topView)
}
The result is this:
The problem is that the first table row is now overlapped by the image. Any idea?
from ltnavigationbar.
I want to get the same result as you did in your parallax branch but just using nib instead of Storyboard.
from ltnavigationbar.
@ltebean I post a bounty on stack overflow may be you can answer that?
http://stackoverflow.com/questions/30130879/uiview-as-top-view-for-uitableview
from ltnavigationbar.
@steffimueller please add me to your repo
from ltnavigationbar.
done!
from ltnavigationbar.
@steffimueller I pushed, this commit: steffimueller/LTNavigationBar-TestProject@3da723a
from ltnavigationbar.
@ltebean Thank you but there is still a difference to the parallax branch. When you pull down the table there is a white background appearing at the top. This does not happen in you r parallax branch. Can you please fix that too?
from ltnavigationbar.
Thank you so much for your help.
from ltnavigationbar.
@ltebean Could you please help me with this last point. I guess it is just one property to set but I canot find it.
When you pull down the table there is a white background appearing at the top. This does not happen in you r parallax branch. Can you please fix that too?
from ltnavigationbar.
@ltebean I still have this issue. Could you please provide a version of your parallax which does not use Storyboard or InterfaceBuilder? Please!
from ltnavigationbar.
Related Issues (20)
- _UINavigationBarBackIndicatorView 造成自定义的返回按钮与默认返回按钮同时显示 HOT 1
- 为什么我在使用的时候navigationBar在下拉的时候,颜色由透明变成蓝色的时候,左右按钮都被导航栏的颜色覆盖了?这是为什么呢?求解 HOT 1
- A back button is shown on left side of navigation.
- 问题多多哦 HOT 1
- Crashed on iOS11 HOT 2
- Swift3.0,使用cocoaPods怎么添加?
- iOS 11 崩溃 HOT 2
- “UINavigationItemView” 私有API被禁了, 上架被拒 HOT 1
- 您好,使用了您的框架结果被拒 HOT 2
- iOS11,UINavigationBar拿不到self.subviews了,如何解决? HOT 1
- iOS11 beta版环境下crash
- iOS11 无法获取_titleView HOT 7
- 调用私有api审核被拒审
- 适配iPhone X的导航条显示不全 HOT 3
- 由于iOS11导航栏图层改变产生的问题 HOT 3
- 通过这样判断适配iPhonex导航栏高度显示问题 HOT 1
- 下拉刷新的时候 左右导航按钮会跟着动画,从左到右加载
- 适配iOS11 iPhone X 需要做的 HOT 1
- iOS12 lt_setBackgroundColor can't set navigationBar Color? HOT 1
- 这么好用的库不维护可惜了啊,试用了其他几个都好复杂 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ltnavigationbar.