我是iOS开发新手.我有一个设置屏幕,这是一个UITableView.我想补充一些解释.我使用以下代码来完成它,但它完全扭曲了文本.知道我做错了什么吗?
UILabel *subjectLabel = [[UILabel alloc] initWithFrame:CGRectMake(0,0, 300, 175)];
subjectLabel.font = [UIFont systemFontOfSize:16.0];
subjectLabel.numberOfLines = 0;
subjectLabel.font = [UIFont fontWithName:@"Arial Rounded MT Bold" size:(10.0)];
subjectLabel.backgroundColor = [UIColor clearColor];
//bodyLabel.textAlignment = UITextAlignmentLeft;
subjectLabel.text = @"mytext";
settingTableView = [[[UITableView alloc] initWithFrame:CGRectMake(0,0, 320, 370) style:UITableViewStyleGrouped] autorelease];
settingTableView.dataSource = self;
settingTableView.delegate = self;
[settingTableView addSubview:subjectLabel];
[self.view addSubview:settingTableView];
Run Code Online (Sandbox Code Playgroud) 我需要模拟器在我的mac上使用etc/hosts文件.有可能吗?我可以指向链接/博客吗?
我有一个jquery对话框如下 -
<div data-role="dialog" id="msg-popup">
<div data-role="header">
<h1>Notification</h1>
</div>
<div data-role="content" id>
<b id="notif-subject"></b>
<p id="notif-popup-content">Test</p>
<a href="#notif-details1" id="show-notif" data-role="button">abc</a>
<a href="#" data-rel="back" data-role="button">Cancel</a>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
我想动态地将"abc"改为"pqr".我该怎么办?我试过 -
$("#show-notif").text = "pqr";
Run Code Online (Sandbox Code Playgroud)
但它不起作用.我能做错什么?