Tag: ios6

有没有一个谷歌地图相当于mkmapsnapshotter?

我有一个UITableView可能包含大量的单元格,在一些单元格中,我想要一个UIImageView显示一个位置的地图,只有在运行时才知道它的坐标。 我想要表视图滚动顺利,我希望单元格中的地图不可滚动。 我已经被指示避免苹果地图。 此外, MKMapSnapshotter是iOS 7及以上。 我必须支持iOS 6。 那么Google Maps图像API是我最好的select吗? 无论如何,我已经在使用Google Maps iOS SDK ,所以我想尽可能使用它。 但是它有这个function吗? 相当于MKMapSnapshotter ? 我很惊讶,我无法在文档中find它。

而我尝试运行在iOS 6我的代码抛出森testing框架错误。 为什么?

我有一个在iOS 5.0开发的项目,现在我需要将我的项目更新到iOS 6.0 。 当做这个我的xcode 4.5抛出错误如下… dyld: Library not loaded: @rpath/SenTestingKit.framework/Versions/A/SenTestingKit Referenced from: /Users/developer/Library/Application Support/iPhone Simulator/6.0/Applications/6EFF12B6-DA80-4DD8-B3CF-B217C5EA63DF/XxxxXxxx.app/xxxxXxxxXxx Reason: image not found 它仍然运行,并在iOS 5设备完美的作品,我想在iphone Simulator iOS 6.0运行这个应用程序,它会引发错误…任何机构有任何想法…先谢谢了…

在select上animationuicollectionview单元格

我已经创build了一个customlayout,并像这样在layoutAttributesForItemAtIndexPath中设置了我的单元格位置属性 attributes.center = CGPointMake((size.width/2 – 100) + 100, (size.height/2 – 150) +100); 我想在选中时为单元格设置animation。 复制我们用initialLayoutAttributesForAppearingItemAtIndexPath & finalLayoutAttributesForDisappearingItemAtIndexPath获得的animationfinalLayoutAttributesForDisappearingItemAtIndexPath 。 我想这样做,当一个单元格被选中和取消select。 例如: 单元格A在位置0,0 。 单元格B在位置50,100 。 如果我select单元格B,我想将其设置为0,0 。 同时使单元格A的值为50,100 。 基本上切换位置,但animation。

在放置在UIImageView上的矩形的框架中创build图像

如何用UIView中的指定框架创build一个新的图像,该视图也包含图像视图和button。我还需要将指定框架中的图像作为新图像。 我试过这个,但不正确。 我需要从UIView作物,并作为一个新的UIImage。

如何获得XMLparsing的图像到数组中,并使用iPhone SDK的所有视图控制器中的数组

我有一个URL中的XML文件,我可以parsing数据并从XML文件中获取图像。 但我不知道如何使用其他视图控制器中的图像。 我有一个想法将图像存储在数组中,但是如何在其他视图控制器中使用图像数组。 是否有可能存储在数组中的XMLparsing图像。我正确parsingXML? 请告诉我一个想法。 我的XMLparsing器 //egsBase.h #import <Foundation/Foundation.h> @interface egsBase : NSObject{ IBOutlet UIImage *img; } @property(nonatomic,retain) IBOutlet UIImage *img; @end //egsBase.m #import "egsBase.h" @implementation egsBase @synthesize img; @end //egsXMLParser.h #import <Foundation/Foundation.h> #import "egsBase.h" @interface egsXMLParser : NSObject <NSXMLParserDelegate>{ NSMutableString *currentNodeContent; NSMutableArray *tweets; NSXMLParser *parser; egsBase *currentTweet; } @property(nonatomic,readonly) NSMutableArray *tweets; -(id) loadXMLByURL:(NSString *) […]

在iOS 6 UIPickerView selectrow崩溃

我的应用程序完美地构build和运行在iOS 5.x中,但是当我调用iOS 6中的UIPickerView selectRow:inComponent:animated:方法时,它会崩溃。 代码: [_pickerview selectRow:1 inComponent:0 animated:NO]; 我知道这种方法是不是在iOS6的工作,当我GOOGLE了,但我想知道其他方法来做到这一点?

当UIActionSheet改变视图时,工具栏项目消失

从UIActionSheetbutton启动视图时,在通过导航栏后退button返回到视图时,仍然可见的工具栏上没有任何之前的button。 自从升级到iOS 6后,出现此错误,并且仅在运行iOS 6的模拟器和设备上进行testing。 如果我注释掉隐藏在UIActionSheet推送的视图上的工具栏的代码,则在返回时添加button。 我正在viewWillAppear编程我的工具栏项目,并显示我通过self.navigationController.toolbar访问工具栏的UIActionSheet 。 任何想法是什么导致这个问题? 这只是自iOS 6已经出现,所以有什么变化,我需要考虑到viewWillAppear ? 这是如何从actionSheet推送视图: – (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { if (actionSheet.tag == 2) { if (buttonIndex == 0) { [self dismissAllTips]; self.actionNoteAddView= [[self.storyboard instantiateViewControllerWithIdentifier:@"IDActionNoteAddView"] retain]; actionNoteAddView.note_id = 0; actionNoteAddView.iscompleted=0; [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"tool_tips"]; [self.navigationController pushViewController:actionNoteAddView animated:TRUE]; [actionNoteAddView release]; }else if(buttonIndex == 1){ … 这些是推送视图的视图方法: -(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; […]

如何在表视图cusomization过程中调用“willDisplayFooterView”方法?

我想调用这些方法: – (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section NS_AVAILABLE_IOS(6_0); – (void)tableView:(UITableView *)tableView willDisplayFooterView:(UIView *)view forSection:(NSInteger)section NS_AVAILABLE_IOS(6_0); 但我不能! 根本没有反应。 我在模拟器iOS 6.0上testing – (void) tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section { DLog(@"0>>"); CGRect originalRect = view.frame; UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"shadow_top.png"]]; [imageView setFrame:CGRectMake(0.0f, originalRect.size.height – imageView.frame.size.height, imageView.frame.size.width, imageView.frame.size.height)]; [view addSubview:imageView]; } – (void) tableView:(UITableView *)tableView willDisplayFooterView:(UIView *)view […]

didReceiveLocalNotification方法在应用程序处于后台时未在应用程序委托中调用

我添加了一个本地通知,它也被触发,通过在iOS6上显示一个横幅并在iOS5中显示警报。 但是在iOS6中,app delegate中的“ didReceiveLocalNotification ”方法没有被调用。 如何知道当应用程序在后台时发生通知? 谢谢。

隐藏iOS 6中的TabBar

我想在iOS 6隐藏我的TabBar,当我编写下面给出的代码在iOS 7工作,但它显示iOS 6黑线 self.tabBarController.tabBar.hidden = YES; 这里是iOS 6快照 :