我有一个问题xcode无法在我的wokspace中找到我的pod的标题.
目标的标题搜索路径似乎没问题

这是我的podfile的内容
target "MyApp" do
pod 'AFNetworking', '~> 2.0'
pod 'Reachability'
pod 'ViewDeck', '2.2.11'
pod 'MBProgressHUD', '~> 0.8'
end
Run Code Online (Sandbox Code Playgroud)
但是当我构建项目时,我在prefix.pch中有这个错误
/Users/...../MyApp-Prefix.pch:17:13:找不到'AFNetworking.h'文件
我试图添加platform :ios, "8.0"我的podfile并做一个pod update但仍然没有运气
我也尝试在SO问题中添加$(继承),如: Xcode 6找不到cocoapods库
我在小牛队使用xcode 6
我试图使用tabbar徽章,但我有问题...我已经找到了如何设置徽章
但是我找不到如何抓住tabbaritem的触摸事件,所以当用户在相应的tabbaritem上时我可以删除徽章
谢谢你的帮助
在laravel 4中我想要一个嵌套的控制器.
我已阅读文档但未找到有关如何执行此操作的任何说明.
在应用程序中我有一些文章,每篇文章都有自己的评论.我希望能够通过访问这样的URL来获取特定文章的所有评论.
http://myapp.com/articles/5/comments
我创建了一个commentsController,但我不知道如何正确地从URL获取文章ID,所以我可以将它传递给我的控制器中的所有CRUD方法
我正在尝试以编程方式创建视图.我想要的结果是一个滚动视图,里面有一个tableview.在这个表视图下我想添加一些按钮
我不知道该怎么做我试过这个但是它不起作用:
- (void)loadView {
[super loadView];
tableView = [[UITableView alloc] initWithFrame:[[self view] bounds] style:UITableViewStyleGrouped];
[tableView setDelegate:self];
[tableView setDataSource:self];
scrollView = [[UIScrollView alloc] initWithFrame:[[self view] bounds]];
//[scrollView setBackgroundColor:[UIColor blackColor]];
[scrollView setBouncesZoom:YES];
deconnectButton = [[UIButton buttonWithType:UIButtonTypeRoundedRect] retain];
[deconnectButton setTitle:@"Deconect" forState:UIControlStateNormal];
[deconnectButton setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal];
//[deconnectButton addTarget:self action:action forControlEvents:UIControlEventTouchUpInside];
deconnectButton.frame = tableView.frame;
NSLog(@"Tableview frame : %@", NSStringFromCGRect(tableView.frame));
[scrollView addSubview:deconnectButton];
[scrollView addSubview:tableView];
[[self view] addSubview:scrollView];
}
Run Code Online (Sandbox Code Playgroud)
我错过了什么或做错了什么?
badge ×1
build ×1
cocoapods ×1
ios ×1
iphone ×1
laravel ×1
laravel-4 ×1
objective-c ×1
php ×1
uiscrollview ×1
uitableview ×1
uiview ×1
xcode6 ×1