Slide 7
Slide 7 text
// όοξͷഎܠΛඳը͢Δ
let rect = CGRectMake(0, 0, 96, 36)
let roundCorner = UIRectCorner.TopLeft | UIRectCorner.BottomRight
let roundSize = CGSizeMake(6.0, 6.0)
let path = UIBezierPath(roundedRect: rect, byRoundingCorners: roundCorner, cornerRadii:
roundSize)
UIColor(red: 0.35, green: 0.78, blue:1.0, alpha: 1.0).setFill()
path.fill()
!
// จࣈΛඳը͢Δ
let attrString = NSAttributedString(
string: "͓͢͢Ί",
attributes:[NSForegroundColorAttributeName: UIColor.whiteColor(),
NSFontAttributeName: UIFont.boldSystemFontOfSize(20.0)])
attrString.drawAtPoint(CGPointMake(6, 4))