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
Post a Comment