我正在使用Google Places API来提取resturants列表,我正在地图上显示它们.但是,由于Apple已经在iOS 6.0中切换了Google的地图服务,我现在违反了Google的使用条款,该条款规定您必须在Google地图上显示Google数据.
"如果您的应用在地图上显示Places API数据,那么该地图必须由Google提供."
https://developers.google.com/places/policies#terms_of_use
我显然需要更改地图,因为我不会发布违反的应用程序.有什么想法或建议怎么办?我应该使用网络视图访问Google地图吗?Apple是否有某种Google Places API替代方案?
编辑:
通过网络视图使用谷歌地图很麻烦,我想找到一个替代方案,虽然它在技术上有用.
我正在尝试更改我的应用名称,在iTunes Connect中进行应用更新.我没有看到这个选项.
这仍然是可能的还是Apple删除了这个功能?
我正在将图像加载到表格视图单元格,每个单元格都有一个图像.我已经将几个教程转换为下面的代码,但我仍然在减速.
我从文档目录加载这些图像.有关如何加快此过程的任何提示或想法?
编辑修改后的代码:
Beer *beer = (Beer *) [self.fetchedResultsController objectAtIndexPath:indexPath];
cell.displayBeerName.text = beer.name;
// did we already cache a copy of the image?
if (beer.image != nil) {
// good. use it. this will run quick and this will run most of the time
cell.beerImage.image = beer.image;
} else {
// it must be the first time we've scrolled by this beer. do the expensive
// image init off the main thread
cell.beerImage.image = nil; // set a default value …Run Code Online (Sandbox Code Playgroud) 当我在我的应用中切换视图(这只是不同的主题)时,我收到此警告.为什么应用程序没有加载的任何想法,建议?
2011-04-25 16:14:20.211 MyApp [4121:40b] ADBannerView:警告横幅视图(0x631bb30)有广告但可能会被遮挡.此消息仅在每个横幅视图中打印一次.

看来,当视图切换时,另一个视图就在后台,任何有关如何执行此操作的想法.
**请注意,Apple的开发者网站上有一个很好的例子,名为iADSuite
我遇到了创建问题,并了解如何为这种情况创建核心数据模型.
(1)一个人可以有多只宠物(狗或猫的组合).
(2)也可能有多个人.
我想通过Person实体并拉动每个人,每个宠物和那里的信息.
我不确定是否应该使用关系,或者如何在Core Data中设置此模型.我迅速记下了我认为模型看起来的选择器.我为了简单起见制作了这个模型,我的模型不涉及猫和狗.
非常感谢任何建议或想法.

我正在尝试创建一个类似于应用程序Instapaper的界面.这些作品就像导航栏一样,除了它在左侧.
我在创建此界面时遇到问题.关于如何做这种类型的界面的任何想法.我想到了一个窗口,视图控制器分为两个不同的视图.
任何想法,建议,甚至教程?

我有几个简单的问题,以确保我在我的应用程序中使用属性.我在网上看了很多,但目前还不清楚.非常感谢任何帮助或建议.
(1)我不太确定该声明是否存在,为何需要它.
@synthesize personName = _personName;
Run Code Online (Sandbox Code Playgroud)
为什么需要_personName变量?与仅仅创建属性和合成变量personName相比,这样做有什么好处.
@property (nonatomic, retain) NSString *personName;
Run Code Online (Sandbox Code Playgroud)
(2)在我的应用程序中,我应该访问属性变量self.personName或使用_personName变量.我相信self.personName是正确的再次为什么_personName甚至在那里?
(3)另外,我对dealloc()中应该释放哪个变量以及在viewDidLoad()中应该将哪个变量设置为nil感到困惑.我也不知道是否应该对didReceiveMemoryWarning()方法进行任何更改.
@interface ViewController : UIViewController
{
NSString *_personName;
}
@property (nonatomic, retain) NSString *personName;
@end
@implementation ViewController
@synthesize personName = _personName;
- (void)viewDidLoad
{
[super viewDidLoad];
self.personName = [[NSString alloc] initWithString:@"John Doe"];
NSLog(@"Name = %@", self.personName);
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
}
- (void)viewDidUnload
{
[super viewDidUnload];
}
- (void)dealloc
{
[super dealloc];
}
@end
Run Code Online (Sandbox Code Playgroud) 我需要在iTunes连接中创建一个新的应用程序,对于Lite版本?我只是想确定一下,找不到任何文章.
我决定将我的图像保存在Core Data中,而不是将它们保存在磁盘上.我查看了Apple的名为Locations的示例代码.但是,该代码目标是iOS 4,我在iOS 5中看到了另一个Stack Overflow帖子.
我已经阅读了允许外部存储,并且我将图像保存为核心数据模型中的二进制数据.
下面的代码从核心数据中检索图像,我在网上找到了这个.但是,我找不到任何关于如何以二进制格式将图像保存到核心数据的教程,或者有关使用核心数据和带有图像的iOS 5的任何教程.
NSData *savedBinaryData = entity.smallImage;
self.smallImage.image = [UIImage imageWithData:savedBinaryData];
Run Code Online (Sandbox Code Playgroud) 我有一个带有我的表视图的搜索栏,但我没有使用a UISearchDisplayController来显示结果,而是使用我的表视图.
我的代码似乎有用,但我想知道这是否可以接受.当用户开始输入时,我添加一个谓词来执行搜索,当用户删除搜索栏内的文本时,我NSFetchResultsController无法获取所有内容.
我在这里做了什么可怕的错误,还是有更好的方法来做到这一点?
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText
{
if ([searchText length] == 0) {
_fetchedResultsController = nil;
}
else {
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"name contains[cd] %@", searchText];
[[_fetchedResultsController fetchRequest] setPredicate:predicate];
}
NSError *error;
if (![[self fetchedResultsController] performFetch:&error]) {
NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
}
[[self tableView] reloadData];
}
Run Code Online (Sandbox Code Playgroud)