我在Mac上有照片,我想添加到iPhone模拟器来测试我的应用程序.
换句话说:如何将照片添加到iPhone模拟器?
编辑:iPhone模拟器4.0怎么样?iphone Simulator 3.0和4.0都有不同的工作方式.
在此先感谢帮助我......
我的应用程序中有以下代码.
NSData *data=[NSData dataWithContentsOfURL:[NSURL URLWithString:pathOfThumbNail]];
Run Code Online (Sandbox Code Playgroud)
pathOfThumbNail具有以下路径
http://70.84.58.40/projects/igolf/TipThumb/GOLF 58B.jpg
当我在safari浏览器中打开上面的路径时 - 路径自动更改并且图像成功显示.
http://70.84.58.40/projects/igolf/TipThumb/GOLF%2058B.jpg
但在iPhone中,由于路径中的空间,图像未加载到nsdata中.

在这里,我指出了Referencing Outlet Collection.我无法弄清楚它在XCode4中的用法.
我要求在XCode4的InterfaceBuilder中提供"REFERENCING OUTLET COLLECTION的新功能".
我知道如何自定义tableViewCell.
我见过很多应用程序自定义tableView Cell.
同样,我想自定义TableView Section Header
"假设 - 部分名称应该是不同的字体,它有不同的背景图像等."
有可能怎么样?
我应该在哪种方法中实现代码?
我对设置表视图单元配件有点困惑.
我在表格中修了两个部分
我想要的是如下......
我试过以下代码.但我发现indexpath.row和indexpath.section是readonly属性.
// Override to support row selection in the table view.
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tblProfileView deselectRowAtIndexPath:indexPath animated:YES];
int i,max;
UITableViewCell *x; NSIndexPath *tt;
for(i=0;i<[tblProfileView numberOfRowsInSection:0];i++)
{
tt.row=i; tt.section=0;
x=[tblProfileView cellForRowAtIndexPath:];
[x setAccessoryType:UITableViewCellAccessoryNone];
}
for(i=0;i<[tblProfileView numberOfRowsInSection:1];i++)
{
tt.row=i; tt.section=1;
x=[tblProfileView cellForRowAtIndexPath:tt];
[x setAccessoryType:UITableViewCellAccessoryNone];
}
x=[tblProfileView cellForRowAtIndexPath:indexPath];
[x setAccessoryType:UITableViewCellAccessoryCheckmark];
// Navigation logic may go here -- for example, create and push another …Run Code Online (Sandbox Code Playgroud) 我的应用程序中有以下代码.
tmp=[[UILabel alloc] initWithFrame:label1Frame];
tmp.tag=1;
tmp.textColor=[UIColor blackColor];
[tmp setFont:[UIFont fontWithName:@"American Typewriter" size:18]];
tmp.backgroundColor=[UIColor clearColor];
[cell.contentView addSubview:tmp];
[tmp release];
Run Code Online (Sandbox Code Playgroud)
现在,我需要知道,
======>如何通过代码设置"Typeface = bold"?
在我的应用程序中,我有UITextView很多行,但我需要具有适当外观的数据.
是否可以进行对齐对齐UITextView?
我已经完成了这个显示以下代码的问题:
-(NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath{
return @"Sagar";
}
Run Code Online (Sandbox Code Playgroud)
如果我想要自定义图像而不是默认的红色按钮怎么办?
在每个应用程序中
总是写成[window makeKeyAndVisible];
makeKey是什么意思?
我正在使用Xcode.
我已经实施了摇动代码.现在我想检查代码是否有效.
我该如何摇动iPhone模拟器?
iphone ×10
uitableview ×3
xcode ×3
cocoa-touch ×1
ios ×1
nsdata ×1
nsurl ×1
objective-c ×1
uikit ×1
uilabel ×1
uitextview ×1
uiwindow ×1
xcode4 ×1