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# - Attribute value in root node of xml Linq to XML -

ios swift - uiimage array to video disorted and flipped -

scala, transform a callback pattern to a functional style internal iterator -