【发布时间】:2013-05-13 20:49:55
【问题描述】:
我拼命想在我的 UICollectionView 上放置一个 UIButton。目标类似于新的foursquare 应用程序中的签到按钮。
我的代码目前如下所示:
UIButton *floatingButton = [[UIButton alloc] init];
[floatingButton setFrame:CGRectMake(320, 150, 50, 50)];
[floatingButton setBackgroundColor:[UIColor blackColor]];
[self.collectionView addSubview:floatingButton];
[self.collectionView bringSubviewToFront:floatingButton];
问题是按钮不在任何地方。
【问题讨论】:
标签: ios uibutton uicollectionview