Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
CPViewのobjective-jで画像を並べて表示する方法はありますか? 次の行に沿ったもの:
みんなありがとう ;)
これを試して:
var image = [[CPImage alloc] initWithContentsOfFile:"Resources/myimage.gif" size:CGSizeMake(20, 20)]; var imageView = [[CPImageView alloc] initWithFrame:CGRectMake(0,0,500,500)]; [imageView setBackgroundColor:[CPColor colorWithPatternImage:image]];