Please check the following link, where Keith had given a detailed description of the image stretching logic.
Skinning UIKit (iPhone) Sliders
Thanks
--
You received this message because you are subscribed to the Google Groups "iPhone SDK Development" group.
To post to this group, send email to iphonesdkd...@googlegroups.com.
To unsubscribe from this group, send email to iphonesdkdevelop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iphonesdkdevelopment?hl=en.
I'm not following here, but just be glancing, you've got all this code to set the size and rect of the button and it really should be more simple.
are you a foe of IB? It's not hard to just even drop a view into the table view there, wire to that view, and add things other views to that view at runtime --
also, you can use the hidden or even make things transparent if you want them to appear or disappear easily which also allows you to put things in a static location using IB etc.
CGContextSetPatternPhase function to change the phase.