Giter Club home page Giter Club logo

Comments (16)

confile avatar confile commented on July 27, 2024

+1

from ltnavigationbar.

steffimueller avatar steffimueller commented on July 27, 2024

@ltebean Could you please help me with this issue?

from ltnavigationbar.

ltebean avatar ltebean commented on July 27, 2024

@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.

steffimueller avatar steffimueller commented on July 27, 2024

@ltebean Thanks for help. Here is the project:

https://github.com/steffimueller/LTNavigationBar-TestProject

from ltnavigationbar.

steffimueller avatar steffimueller commented on July 27, 2024

I suppose it is just a small thing. :-)

from ltnavigationbar.

ltebean avatar ltebean commented on July 27, 2024

just set the topView as the table header view: tableView.tableHeaderView = topView

from ltnavigationbar.

steffimueller avatar steffimueller commented on July 27, 2024

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:

ios_simulator_-iphone_5-iphone_5___ios_7_1__11d167

The problem is that the first table row is now overlapped by the image. Any idea?

from ltnavigationbar.

steffimueller avatar steffimueller commented on July 27, 2024

I want to get the same result as you did in your parallax branch but just using nib instead of Storyboard.

from ltnavigationbar.

steffimueller avatar steffimueller commented on July 27, 2024

@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.

ltebean avatar ltebean commented on July 27, 2024

@steffimueller please add me to your repo

from ltnavigationbar.

steffimueller avatar steffimueller commented on July 27, 2024

done!

from ltnavigationbar.

ltebean avatar ltebean commented on July 27, 2024

@steffimueller I pushed, this commit: steffimueller/LTNavigationBar-TestProject@3da723a

from ltnavigationbar.

steffimueller avatar steffimueller commented on July 27, 2024

@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.

steffimueller avatar steffimueller commented on July 27, 2024

Thank you so much for your help.

from ltnavigationbar.

steffimueller avatar steffimueller commented on July 27, 2024

@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.

steffimueller avatar steffimueller commented on July 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.