Created
January 31, 2012 14:44
-
-
Save tikitikipoo/1710854 to your computer and use it in GitHub Desktop.
円形のUIViewを作成
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIView * circleView = [[UIView alloc] initWithFrame:CGRectMake(0,0,SIZE,SIZE)]; | |
[circleView setBackgroundColor:[UIColor blackColor]]; | |
circleView.layer.cornerRadius = SIZE / 2; | |
[self.view addSubview:circleView]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment