Code Monkey home page Code Monkey logo

bozpongrefreshcontrol's People

Contributors

ajfigueroa avatar boztalay avatar jconst avatar mahireusufzai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bozpongrefreshcontrol's Issues

Controlling left paddle via motion

I was considering modifying the project so that the user can control one of the paddles by tilting the iPhone/Pad . (Keeping the current system would also be an option.) Is this something worth doing?

Start the animation when the user pulls down

First of all - this is fantastic, very well done - really cool and awesome!!! :) Congrats!

Would be awesome to have the user be able to see the animation for fun when they pull down - right now the requests are pretty fast so the user only sees the animation for a short time (since the animation starts when the control is pulled down and released).

See the other apps that do it this way - Snapchat, new YikYak.

Sweet job, this is really cool!

(Also I tried decreasing the ball travel time to 0.5 to show the user more of the game / make it clearer what is happening when they pull down and it seemed rushed. I think the solution is just to make the game show for longer, it's fun to watch and I'm sure people will refresh just to see it!)

Autorotation breaks the refresh control (when app itself does not support autorotate)

My app has autorotation turned off (Portrait only).

When I pull down on the refresh control to expose the Pong view, then rotate, the Pong view will disappear and the table offset will still be there.

When I try to pull down again, nothing happens, when I let go, the Pong view shows up again and closes, causing the table offset to go back to normal.

My solution, remove the NotificationCenter observer for changeOrientation because I will never need it. Perhaps in the future a property can be created in BOZPongRefreshControl to enable/disable the autorotation code after initializing it.

Issue when the system scrolls the table view automatically

If the table view is scrolled without user interaction, the pong view will not know the current offset of the table, so it may show up on screen unintentionally.

The case that I ran into: I have cells that expand/collapse when they are tapped. If you tap a cell in the middle of the table, the device will automatically move the cells below, thus having no effect on the position of the Pong view up above. However if you tap the last item in the list, it will move everything above. When collapsing, it will scroll the cells down, which also brings down the pong view.

As soon as I scroll the table manually, it sees the correct offset and removes the pong view.

My fix for this was to include a call to "[self.pongRefreshControl scrollViewDidScroll];" after the cell is collapsed, which allows the pong view to update to the correct offset with the new table position.

Maybe this isn't a full-on bug, because I can't find a solution without a major refactor in the Pong library, but it should probably be included in the ReadMe as a footnote to call scrollViewDidScroll in cases where the table might be scrolled outside of "scrollViewDidScroll"

Tested on Iphone 6

This is not an issue but I don't know another place to say it.

It works fine on iPhone 6 with 8.1.2

strong scrollView and refreshTarget properties create a retain cycle

In BOZPongRefreshControl.m line 58.
The properties scrollView and refreshTarget should be weak, not strong.
This class does not own these objects, so it should not retain them.
This memory leak can be shown in the example project by running the Instruments allocation tool. Every time you open/close the "On a ScrollView" option, it adds ~350KB of memory usage because it is keeping every instance of the scrollView in memory that you ever open. This may not be much in this case, but it my project it was keeping open ~6MB of memory each time.

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.