腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
UITableViewCell未调用
initWithFrame
、
、
、
我以编程方式创建了我的UITableViewCell (没有xib),下面
是
我如何在代码中使用它:
self
= [
super
initWithFrame
:
frame
]; NSLog(@"CALLING INIT WITH
FRAME
");
self
浏览 4
提问于2011-08-01
得票数 1
回答已采纳
3
回答
"if (
self
= [
super
:
frame
reuseIdentifier
:
reuseIdentifier
])“的意义是
什么
?
、
想知道下面代码中if (
self
= [
super
...的意义是
什么
吗?它试图防范的是
什么
情况?- (id)
initWithFrame
:(CGRect)
frame
reuseIdentifier
:(NSString *)
reuseIdentifier
{ if (
self
= [
super
initWithFrame
:
frame
reuseIdentifier</e
浏览 0
提问于2011-03-11
得票数 2
回答已采纳
1
回答
“‘
initWithFrame
:
reuseIdentifier
”已弃用
、
我试图重新创建一个Xcode项目,但是我遇到了一个错误"'
initWithFrame
:
reuseIdentifier
‘is deprecated“。代码如下:if (
self
= [
super
initWithFrame
:
frame
<em
浏览 0
提问于2011-07-10
得票数 6
回答已采纳
1
回答
PostNotification带来的EXC_BAD_ACCESS
、
UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath cell= [[CustomCell alloc]
initWithFrame
:
reuseIdentifier
:identifier document:doc];}- (id)
initWithFrame
:(CGRect)
frame
reuseIdentifier
:(NSStrin
浏览 0
提问于2010-06-15
得票数 3
回答已采纳
1
回答
在替换弃用方法后使用未声明的标识符
、
、
代码如下: if (
self
=[
super
initWithFrame
:
frame
reuseIdentifier
:
reuseIdentifier
]) {} return
浏览 0
提问于2012-11-10
得票数 0
回答已采纳
2
回答
UITableViewCell之谜?
、
、
因为这个也是试试这个 `cell.imageView.image = aNewsInfo.smallImageData
浏览 0
提问于2011-05-31
得票数 0
4
回答
UITableViewCell内容不会填满整个单元格
、
= [
super
initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; // Custom initialization}} { // Do any additional setup:(NSString *)
reuseIdentifier</e
浏览 0
提问于2013-07-24
得票数 0
2
回答
向单元格中添加按钮
、
、
*)
reuseIdentifier
self
= [
super
initWithStyle:style
reuseIdentifier
:
reuseIdentifier
]; voteCount = [[UILabel alloc]
initWithFrame
:CGRectMake(
self
.
frame
.size.width/2, 10, 10
浏览 4
提问于2013-08-25
得票数 0
回答已采纳
1
回答
引脚侧的iOS MapKit自定义标注
、
、
、
、
基本上,我在mapView:didSelectAnnotationView:委托回调(第二个参数
是
注释视图)中向注释视图添加了一个子视图。它显示出了我想要的,但它不能接收触摸事件。有
什么
想法吗?
浏览 2
提问于2014-05-05
得票数 0
1
回答
如何在自定义单元格中添加按钮?
我在一个应用程序中工作,需要添加自定义单元中的按钮。有人能帮我这个忙吗?提前感谢
浏览 1
提问于2011-09-02
得票数 0
3
回答
带有自定义类的原型单元不会触发init吗?
、
、
、
、
我
是
objective-c的新手,有一个关于原型细胞的问题。如果我对单元格进行类检查,它显然
是
我的自定义类,但两个init方法都没有被调用
浏览 1
提问于2012-03-02
得票数 2
回答已采纳
1
回答
backgroundColor of UITableViewCell的问题
、
、
我把我的backgroundColor UITableViewCell设置成这样: [UIImage imageNamed:@"background.png"]];
浏览 1
提问于2011-08-29
得票数 0
回答已采纳
1
回答
在UITableViewCell子类中旋转UIImageView
、
、
、
、
:(NSString *)
reuseIdentifier
self
= [
super
initWithStyle:style
reuseIdentifier
:
reuseIdentifier
];
frame
.size.width = 20;
frame
.
浏览 3
提问于2012-05-02
得票数 0
回答已采纳
1
回答
如何在UITableViewCell中让UITextView自动调整大小
、
、
我这样创建文本视图:我已经在这个问题上花了一段时间了,但仍然没有找到解决方案。
浏览 3
提问于2009-10-22
得票数 1
回答已采纳
4
回答
向UITableViewCell内容视图添加子视图
、
、
而不是将其添加到视图控制器的cellForRowAtIndexPath方法中……编辑:- (id)
initWithFrame
:(CGRect)
frame
reuseIdentifier
:(NSString*)
reuseIdentifier
{ if (
self
浏览 1
提问于2011-12-05
得票数 0
回答已采纳
1
回答
按钮不会出现在表格单元格中
、
、
我的问题
是
,定制的按钮"starbtn“不会出现在表中,而其他所有东西都正常工作。我的代码有
什么
问题?=[
super
init] )
self
.checked = NO;
self
.starbtn = [[favButton alloc]
initWithFrame
浏览 1
提问于2014-07-11
得票数 0
回答已采纳
3
回答
MKAnnotationView子类在Swift中应该有哪些初始化器?
、
、
、
、
super
.init(
frame
:
frame
)} } }
浏览 5
提问于2015-04-09
得票数 11
1
回答
AQGridViewCell定制
到目前为止,我所尝试的
是
:- (AQGridViewCell *) gridView: (AQGridView *) gridView cellForItemAtIndexIssueCell.h"@synthesize issueModel; - (id)
initWithFrame
: (CGRect)
frame
re
浏览 1
提问于2011-12-15
得票数 1
回答已采纳
1
回答
setIndentationLevel不适用于cell.ContentView子视图
、
、
、
为
什么
setIndentationLevel没有获得单元格子视图?我有一个UITableView。我的cellForRowAtIndexPath如下所示。我添加的箭头没有在textlabel中移动。为
什么
? cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
reuseIdentifier
UIImageView *img = [[UIImageView alloc]initWithIm
浏览 5
提问于2012-10-11
得票数 0
回答已采纳
4
回答
UITableViewCell的子类不显示文本
、
、
- (id)initWithStyle:(UITableViewCellStyle)style
reuseIdentifier
:(NSString *)
reuseIdentifier
self
= [
super
initWithStyle:style
reuseIdentifier
:
reuseIdentifier
]; { UITextField*textField = [[UITextField alloc]
浏览 0
提问于2013-04-30
得票数 0
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券