4 設置frame。 CGPoint origin = button.frame.origin; button.frame = CGRectMake(origin.x, origin.y, newWidth, newHeight); 來源 2010-05-17 01:10:27