腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Swift
UICollectionViewCell
UIlabel
问题
swift
、
uicollectionview
、
uilabel
我正在写日历,每一天都是一个单元格,每个单元格在contentView中都有一个圆角的
UILabel
,但我不知道为什么每个单元格的Calendar image上都有小黑边 在3d视图3d preview中 类CalendarCell:
UICollectionViewCell
{ static var identifier: String = "DayCell" s
浏览 5
提问于2021-01-26
得票数 1
回答已采纳
5
回答
在
uicollectionviewcell
中设置文本
ios
、
objective-c
我已经创建了一个UIcollectionView和一个包含字符串@@“项目一”、“项目二”、@“项目三”的数组;NSString *object = self.titlesArray[indexPath.row];但我真的不知道如何对UIcollectionView中的项执行此操作。
浏览 9
提问于2014-11-21
得票数 6
回答已采纳
2
回答
在表格视图单元格中添加集合视图
swift
3
ios
、
swift
、
uitableview
、
swift3
、
uicollectionview
@IBOutlet weak var label:
UILabel
! @IBOutlet weak var img: UIImageView!// @IBOutlet weak var collectionViewCell:
UICollectionViewCell
!
浏览 1
提问于2017-04-30
得票数 3
4
回答
更新UICollectionView中的标签
ios
、
swift
、
uicollectionview
、
uicollectionviewcell
MainViewController.
swift
letimport UIKit class ProductCollectionViewCell:
UICollectionViewCell</em
浏览 0
提问于2018-03-04
得票数 1
回答已采纳
1
回答
尝试注册
UICollectionViewCell
子类,但不断获得“不能使用.调用'registerClass‘”。
ios
、
swift
、
syntax
、
compilation
我创建了一个名为
UICollectionViewCell
的子类Preview,并在故事板编辑器中的UICollectionView中创建了一个带有reuseIdentifier PreviewWindow/ViewController.
swift
:15:29:不能使用类型的参数列表(Preview.Type,forCellWithReuseIdentifier: String)'调用'registerClasscollectionView(collectionView: UICollectionView, cellForItem
浏览 0
提问于2015-08-21
得票数 0
2
回答
从myLabel到
UILabel
的UICollectionView出口无效。出口不能连接到重复内容。
ios
、
swift
、
xcode
、
uicollectionview
我编写了我的第一个CollectionView,但是构建失败了,出现了以下错误消息:import UIKit class Collect
浏览 3
提问于2020-03-22
得票数 2
回答已采纳
5
回答
使用
Swift
的UICollectionView错误
ios
、
objective-c
、
uicollectionview
、
swift
、
uicollectionviewcell
我收到了这个错误,试图在
Swift
中使用UICollectionView:但我想我在注册手机: 重写funccellForItemAtIndexPath: collectionView(collectionView: UICollectionVi
浏览 0
提问于2014-06-12
得票数 7
回答已采纳
5
回答
带有轻击手势识别器的
UILabel
不起作用
ios
、
objective-c
、
uicollectionview
、
uicollectionviewcell
、
uitapgesturerecognizer
我已经使用XIB设计了一个
UICollectionViewCell
,并且在这个自定义单元中我有一个
UILabel
,我已经启用了它的用户交互。cell.buy addGestureRecognizer:buyNowTapped]; {
UILabel
button = (UIButton *)sender; } else if ([sender isKi
浏览 1
提问于2016-08-26
得票数 1
1
回答
使用带有自定义
UICollectionViewCell
的FirebaseUI-IOS时出错
ios
、
iphone
、
swift
、
uicollectionview
、
firebase
reuseIdentifier: "messageCell", view: self.collectionView) self.dataSource.populateCellWithBlock { (cell:
UICollectionViewCell
我的println(cell)打印以下一行:<xxxxx.MessageCollectionViewCell: 0x7fc26d8d9080; baseClass =
UICollectionViewCell
浏览 1
提问于2015-08-18
得票数 2
回答已采纳
1
回答
如何从上到下排列UICollectionVewCell然后从左到右
ios
、
swift
、
uicollectionviewcell
问题
:我如何从上到下对齐
UICollectionViewCell
,然后从左到右? MyCell.
swift
:class MyCell:
UICollectionViewCell
{myCollectionVC.
swift
: private let reuseIdentifier
浏览 6
提问于2015-09-25
得票数 0
回答已采纳
1
回答
动态设置颜色集合视图标签背景色
swift
return "Success" return "Rejected" }ClassCollectionViewCell.
swift
final class ClassCollectionViewCell :
UICollectionViewCell
{func collectionView(_ collectionVi
浏览 4
提问于2021-01-26
得票数 0
回答已采纳
1
回答
从UICollectionView选择后使用核心数据填充详细视图
ios
、
iphone
、
swift
、
core-data
、
uicollectionview
我有一个与找到的非常相似的
问题
,只是我正在使用
SWIFT
2.0编写代码(他们的
问题
/答案是Objective),我的情况略有不同。collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) ->
UICollectionViewCell
String} 下面是当前的didSelectItemAtInde
浏览 1
提问于2016-02-21
得票数 0
回答已采纳
2
回答
UICollectionView上的可重用性
问题
ios
、
iphone
、
objective-c
、
cocoa-touch
、
uicollectionview
imgPhoto.image = [UIImage imageNamed:@"product.png"]; [lblCategoryTitle setFont: [UIFont fontWithName:@"OpenSans-BoldcolorWithPatternImage:[UIImage imageNamed:@&q
浏览 2
提问于2014-03-27
得票数 2
回答已采纳
1
回答
为什么
UILabel
不将来自dataSource的数据显示到集合视图单元格中?
swift
、
xcode
、
uicollectionview
、
datasource
、
uicollectionviewcell
我正在尝试使用
UILabel
在屏幕上显示它们。class MyCollectionViewCell:
UICollectionViewCell
{ @IBOutlet var notesLabel:
UILabel
!indexPath: IndexPath) ->
UICollectionViewCell
{ let cell = collectionView.dequeueReusableCell(withReuseIdentifier并创建自己的那一刻起,我就无法让
UILabel
浏览 5
提问于2021-03-13
得票数 1
4
回答
使用
Swift
的UICollectionView
ios
、
iphone
、
uicollectionview
、
swift
在我的项目中,我用
UICollectionViewCell
创建了单元代码如下。GalleryCell.
swift
{ super.init(coder: aDecoder)}守则如下: NextViewController.
swift<
浏览 5
提问于2014-06-12
得票数 4
回答已采纳
2
回答
如何在
UILabel
中UICollectionView中显示数组字符串
iphone
、
string
、
label
、
uicollectionview
- (
UICollectionViewCell
*)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath*)indexPath{
UICollectionViewCell
*cell = [collectionViewdequeueReusableCellWithReuseIdentifier:cellIdentifier forIn
浏览 4
提问于2014-09-30
得票数 0
回答已采纳
3
回答
不能将textLabel添加到
UICollectionViewCell
中吗?
ios
、
swift
、
uicollectionview
、
uicollectionviewcell
、
textlabel
collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) ->
UICollectionViewCell
collectionView.dequeueReusableCellWithReuseIdentifier(reuseIdentifier, forIndexPath: indexPath) as
UICollectionViewCell
浏览 4
提问于2014-12-17
得票数 2
回答已采纳
1
回答
在创建出口时,UISwitch无法正确执行
swift
、
uicollectionview
、
uicollectionviewcell
、
uiswitch
我有一个
UICollectionViewCell
类,它包含指向UIImageView、
UILabel
和UISwitch的出口。collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) ->
UICollectionViewCell
= UIImage(named: "ic_notifications_18pt") } 这是我的GridC
浏览 1
提问于2016-07-14
得票数 0
回答已采纳
2
回答
无法获得第一个单元格的正确索引。
ios
、
objective-c
、
uicollectionview
试图从
uilabel
中的cellForItemAtIndexPath访问didSelectItemAtIndexPath,但无法获得第一个单元格。这是我的密码
UICollectionViewCell
*cell=[collectionView dequeueReusableCellWithReuseIdentifier:@"Cell" forIndexPath:indexPath];
UILabel
*featureName = [[
UILabel
a
浏览 2
提问于2017-11-08
得票数 0
回答已采纳
1
回答
UICollectionView示例失败与EXC_BAD_INSTRUCTION
ios
、
swift
我遵循 on UICollectionView,但我用
Swift
编写它,使用Xcode 6和iOS SDK8.0(我也尝试使用7.1和7.0)。imagesArray += "
Swift
" imagesArray += "the" imagesArray +->
UICollectionViewCell
!= collectionView.dequeueReusableCellWithReu
浏览 1
提问于2014-07-02
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
声明式 UIKit 在有赞美业的实践
一不小心,在iOS富文本上栽了个跟头
Swift在好大夫APP医患两端的打怪升级
Swift 5将帮助iOS 12.2应用瘦身 启动加快
从探索到落地,手淘引入 Swift “历险记”
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券