Skip to content

Instantly share code, notes, and snippets.

@tikitikipoo
Created January 31, 2012 14:44
Show Gist options
  • Save tikitikipoo/1710854 to your computer and use it in GitHub Desktop.
Save tikitikipoo/1710854 to your computer and use it in GitHub Desktop.
円形のUIViewを作成
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