Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- UIButtonのレイアウトの実装
- */
- class myButtonView: UIView {
- func myButtonViewFunc() -> CGRect{
- let rectx = sWidth!/2
- let recty = sHeight!/2
- let rectWidth = sWidth!/2
- let rectHeight = sHeight!/2
- let buttonRect = CGRect(x:rectx,y:recty,width:rectWidth,height:rectHeight)
- return buttonRect
- }
- }
Add Comment
Please, Sign In to add comment