小编Sag*_*ari的帖子

如何将照片添加到OSX的iPhone模拟器?

我在Mac上有照片,我想添加到iPhone模拟器来测试我的应用程序.

换句话说:如何将照片添加到iPhone模拟器?

编辑:iPhone模拟器4.0怎么样?iphone Simulator 3.0和4.0都有不同的工作方式.

在此先感谢帮助我......

iphone

45
推荐指数
4
解决办法
4万
查看次数

NSData和NSURL - 空间有问题的网址

我的应用程序中有以下代码.

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中.

iphone xcode nsurl nsdata

38
推荐指数
3
解决办法
3万
查看次数

什么是Xcode4 Interface Builder中的引用插座集合?

在此输入图像描述

在这里,我指出了Referencing Outlet Collection.我无法弄清楚它在XCode4中的用法.

我要求在XCode4的InterfaceBuilder中提供"REFERENCING OUTLET COLLECTION的新功能".

iphone interface-builder ios xcode4 iboutletcollection

35
推荐指数
1
解决办法
2万
查看次数

如何自定义tableView剖面视图 - iPhone

我知道如何自定义tableViewCell.

我见过很多应用程序自定义tableView Cell.

同样,我想自定义TableView Section Header

"假设 - 部分名称应该是不同的字体,它有不同的背景图像等."

有可能怎么样?

我应该在哪种方法中实现代码?

iphone xcode uitableview

29
推荐指数
1
解决办法
4万
查看次数

UITableViewCell附件类型检查点击并设置其他未选中

我对设置表视图单元配件有点困惑.

我在表格中修了两个部分

  • 办公室

我想要的是如下......

  • 当用户点击任何一个单元格时
  • 细胞被选中&
    • 我想设置检查(设置uitableviewcell附件类型 - 检查tapped cell)
  • 此外,所有其他电池的配件类型现在应该设置为
    • uitable view cell accessory type none

我试过以下代码.但我发现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)

iphone xcode objective-c uitableview

29
推荐指数
4
解决办法
7万
查看次数

UILabel - 在iPhone中以编程方式设置字体 - 字体

我的应用程序中有以下代码.

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"?

iphone uilabel

28
推荐指数
3
解决办法
8万
查看次数

UITextView中的对齐对齐 - iPhone

在我的应用程序中,我有UITextView很多行,但我需要具有适当外观的数据.

是否可以进行对齐对齐UITextView

iphone uitextview

24
推荐指数
6
解决办法
3万
查看次数

自定义删除按钮在UITableView单元格中编辑

我已经完成了这个显示以下代码的问题:

-(NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath{
    return @"Sagar";
}
Run Code Online (Sandbox Code Playgroud)

如果我想要自定义图像而不是默认的红色按钮怎么办?

iphone uitableview

23
推荐指数
3
解决办法
5万
查看次数

makeKeyAndVisible&makeKeyWindow - iphone中的uiwindow

在每个应用程序中

总是写成[window makeKeyAndVisible];

makeKey是什么意思?

iphone cocoa-touch uikit uiwindow

21
推荐指数
2
解决办法
2万
查看次数

如何检查iPhone模拟器中的摇晃效果?

我正在使用Xcode.

我已经实施了摇动代码.现在我想检查代码是否有效.

我该如何摇动iPhone模拟器?

iphone

20
推荐指数
4
解决办法
2万
查看次数