OliverLetterer / SPLBokehBackgroundView

Rebuilding iOS 7 dynamic wallpapers.
MIT License
51 stars 4 forks source link

Using BokehBackground behind tableview #1

Open stagis opened 10 years ago

stagis commented 10 years ago

Hi

I think your view looks great and wanted to take it for a spin in my app. I have a left menu, with a tableview for the menu (SASlideMenu). Now there is an image behind that table, and I thought it could be fun to put in the bokeh view instead. Im doing this: self.bokehBackgroundView = [[SPLBokehBackgroundView alloc] initWithFrame:self.tableView.frame];

self.bokehBackgroundView.showsFPS = YES;
self.tableView.backgroundView = self.bokehBackgroundView;

However, when I present the left menu the background is orange (also see 60.0 fps label), I can see my tableview menu, but nothing happens when i tap them. If I then touch below the tableview cell, the background turns blue (like it should) however there are no bokehs animating.

I realize it is difficult to know whether it is my setup causing this, but perhaps if you had some pointers on what I could chase. Is there something I need to do when the view is sliding in and out of view wrt pausing / starting the scene?

Any help much appreciated.

Also is it somehow possible to control the colors (of background/bokeh) through the View or would I have to edit your code.

Thanks in advance!

Very best,

Svend

OliverLetterer commented 10 years ago

I have only tested SPLBokehBackgroundView in very static scenarios (not moving to/from windows) so I cant give you any hint where the issue might be. If you find anything regarding pausing / resuming the scene when changing windows, feel free to submit a pull request :)

Since this was more a less a proof of concept, no other colors are support. A pull request here is also welcome :)

stagis commented 10 years ago

Hi Oliver,

Thanks for getting back to me. If I figure something out I'll let you know, and if it is really good I'll have to figure out how to do a pull request :-)

Very best,

Svend