所以我有一个NSArray"myArray"和NSNumberNSString.我还需要UIView个,所以我这样说:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

DetailViewController *details = [[DetailViewController alloc] initWithNibName:@"DetailView" bundle:nil];
details.subjectText = [[myArray objectAtIndex:indexPath.row] objectForKey:@"subject"];

主题文本有效.

推荐答案

try :

NSString *myString = [NSNumber stringValue];

Objective-c相关问答推荐

恢复 iOS7 之前的 UINavigationController pushViewController 动画

NSMutableDictionary 的深层可变副本

Objective-C struct 的默认值以及如何测试

来自 NSDate 的日期名称?

iphone keys 串项目在应用程序卸载后仍然存在?

如何在 iPhone 应用程序的 UINavigationBar 中添加图像

如何获取 AppIcon 的 UIImage?

来自 NSString 的 NSJSONSerialization

将子视图添加到 UIButton

你如何安排一个块在下一次运行循环迭代中运行?

判断一个 NSDate 是否大于另一个

Xcode:可以为协议接口所需的方法自动创建存根吗?

更改后退导航栏按钮的字体

如何在 Objective-C 中创建静态方法?

在 Objective C 中使用 extern

UITableViewCell 右侧有图像?

每个 ivar 都必须是一个属性吗?

@class 在 Objective-C 中做了什么?

请求访问相机胶卷的权限

Xcode 如何加载主情节提要?