Button建立能夠不用[UIButton alloc]initwithFrame: 不用再開闢空間了,正確的寫法以下:spa
UIButton rightNowButton = [UIButton buttonWithType:UIButtonTypeCustom];it
rightNowButton.frame=CGRectMake();class