
Swift
文章平均质量分 73
心悦小九
朝着远方奔跑的少年!
展开
-
Swift_UIButton
UIButton的创建方式:1.let button = UIButton(frame: CGRectMake(10, 30, 60, 50))2.var button:UIButton = UIButton.buttonWithType(UIButtonType.Custom) as! UIButton button.frame = CGRectMake(1原创 2015-08-26 14:06:05 · 653 阅读 · 0 评论 -
Swift_UILabel
UILabel的用法 let label = UILabel() label.frame = CGRectMake(40, 30, 100, 25) label.text = "label label" label.textAlignment = NSTextAlignment.Center label.textColor原创 2015-08-26 13:39:52 · 464 阅读 · 0 评论 -
Swift之UIScrollView和UIPageControl
let width:CGFloat = 375let height:CGFloat = 668class ViewController: UIViewController,UIScrollViewDelegate { var pageControl:UIPageControl? var tmpSV:UIScrollView? override func vi原创 2015-08-27 14:24:15 · 2289 阅读 · 0 评论 -
Swift之UINavgationController
UINavigationController原创 2015-08-28 19:35:36 · 508 阅读 · 0 评论 -
Swift之UITableView
UITableView的相关操作原创 2015-08-28 17:46:57 · 515 阅读 · 0 评论 -
Swift之UITabBarController
func createTabBarController() { let vc1 = KYCarViewController() vc1.title = "拼车" let vc2 = KYCiycleViewController() vc2.title = "圈子" let vc3 =原创 2015-09-11 17:27:09 · 390 阅读 · 0 评论