iphone - How could I stop UIScrollView from bouncing if there's no scroll distance? -


i have uiscrollview want bounce when scrolls, it's able bounce despite content size being same frame. how can stop bouncing if content size , frame same size? there more elegant way overriding setcontentsize , setframe check it?

you can have check that

    if(scrollview.contentsize==frame.size)      {         scrollview.bounce = no;      }      else      {        scrollview.bounce = yes;       } 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -