标签: ios6

segue完成后如何执行一些代码?

在iOS 6中是否可以知道何时UIStoryboardSegue完成了转换?就像当我在navigationcontroler上添加一个UIStoryboardSeguefrom UIButton来推送另一个UIViewController时,我希望在推送转换完成后立即执行某些操作.

uiviewcontroller ios segue uistoryboardsegue ios6

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

如何为iPhone 5屏幕尺寸命名图像?

4英寸视网膜显示器图像的新命名约定是什么?

对于名为的图像,background.png您将@ 2x添加到name(background@2x.png)以告知iOS将其用于具有视网膜显示的设备.

iPhone 5的屏幕尺寸后缀是什么?

iphone cocoa-touch ios ios6 ios7

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

XCode 4.5(4G182)+ iPhone 5 iOS6 - 选择具有支持的体系结构的目标,以便在此设备上运行

所以我有一个全新的应用程序,我昨晚为iOS6创建,使用XCode 4.5.我可以使用iOS6在我的iPhone 4上正确开发.

今天我用iOS6获得了我的新iPhone 5,在使用新设备UUID更新证书后,我尝试在其上运行我的应用程序并收到此错误:

XCode无法使用所选设备运行.选择具有受支持体系结构的目标,以便在此设备上运行.

我已启用该设备进行开发.armv7和armv7都在设置上.

我已经包含了Facebook 3.0 SDK和链接器标志'-lsqlite3.0'的来源.我猜这个问题必须有关系,但无法弄清楚是什么问题.

任何想法如何解决?

PS:在模拟器上运行应用程序时也会出现问题.不知道我的项目或XCode在昨晚和今天之间发生了什么变化,除了我有一个新设备和新证书.

所选目标不支持为其构建所选软件的体系结构.切换到支持该体系结构的目标,以便运行所选的软件.

iphone xcode ios6 xcode4.5 iphone-5

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

shouldAutorotateToInterfaceOrientation在iOS 6中不起作用

In iOS 6 shouldAutorotateToInterfaceOrientation没有用,但它在iOS 5.0或中工作正常5.1.

我应该需要改变什么iOS 6.这是我的代码

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
if([[[SampleApplicationAppDelegate instance].callInfoDictionary valueForKey:IS_CHAT] isEqualToString:NO_RESPONSE])
{
    int nAngle = 0;
    BOOL bRet = NO;

    switch (interfaceOrientation) {
        case UIInterfaceOrientationPortrait:
            nAngle = 90;
            bRet = YES;
            NSLog(@".......Preview = %f %f",_previewCamera.frame.size.width,_previewCamera.frame.size.height);

            _previewCamera.transform = CGAffineTransformMakeRotation(M_PI*1.5);

            NSLog(@"Preview = %f %f",_previewCamera.frame.size.width,_previewCamera.frame.size.height);
            break;

        case UIInterfaceOrientationPortraitUpsideDown:
            nAngle = 270;
            bRet = YES;
            _previewCamera.transform = CGAffineTransformMakeRotation(M_PI_2);
            break;

        case UIInterfaceOrientationLandscapeLeft:
            nAngle = 0;
            bRet = YES;
            //_previewCamera.transform = CGAffineTransformMakeRotation(M_PI*1.5);
            break;

        case UIInterfaceOrientationLandscapeRight:
            nAngle …
Run Code Online (Sandbox Code Playgroud)

xcode orientation screen-orientation ios6

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

动态更改UICollectionReuseableView(集合节标题)的高度

我试图UICollectionView动态设置节标题的高度,但使用下面的代码,我没有看到任何变化.视图是使用正确的项目绘制的,但高度不会让步.很抱歉,如果这是一个重复的问题,但我似乎找不到任何与该UICollectionView对象有关的内容.提前致谢.

- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView
           viewForSupplementaryElementOfKind:(NSString *)kind
                                 atIndexPath:(NSIndexPath *)indexPath
{
    PhotoVideoHeaderCell *headerView = [collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader
                                                                          withReuseIdentifier:@"videoHeaderView"
                                                                                 forIndexPath:indexPath];
    if (indexPath.section == 0) {
        // photos
        [headerView setSection:@"Photo"];
    } else {
        [headerView.VehicleDetailView removeFromSuperview];
        CGRect frame = headerView.frame;
        frame.size.height = 60;
        [headerView setFrame:frame];
        [headerView setNeedsDisplay];
        [headerView setBackgroundColor:[UIColor grayColor]];
        [headerView setSection:@"Video"];
    }

    return headerView;
}
Run Code Online (Sandbox Code Playgroud)

objective-c ios6 xcode4.5

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

了解iOS中的配置文件和证书

我是否了解配置文件,证书是否正确(开发期间)?

  1. 在设备上安装时,应用程序使用xcode的开发人员证书进行签名?证书应存在于供应配置文件中(存储在IPad/IPhone中),并且安装设备的deviceid也应存在于供应配置文件中.
  2. 因此,当设备未连接到开发人员mac时单击应用程序时,应用程序的签名证书应与配置文件中的一个(设备上存在)匹配,并且设备ID也应与配置文件中的设备ID匹配,然后应用程序将运行.
  3. 当设备连接到运行xcode的mac并且你想要调试时,存储在钥匙串中的公钥+私钥开始起作用,xcode尝试使用证书解锁存储在钥匙串中的公钥+私钥,从而识别mac,并执行上面的项目符号,如果这也是真的,那么你可以成功调试

ios ios5 ios6

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

使用hidesBottomBarWhenPushed在app内置目标<= iOS 6时,iOS 7上的奇怪动画

当我构建一个面向iOS 5或6的应用程序,但在iOS 7上运行它时会出现此问题.如果我在navigationController中有一个控制器,它是tabBarController的一部分,我会执行以下操作:

controller.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:testController animated:YES];
Run Code Online (Sandbox Code Playgroud)

发生奇怪的垂直定位动画.我希望新控制器(底部栏隐藏)可以推动或弹出导航控制器,将标签栏推出或将其拉回并且没有垂直定位更改.

问题视频:http://cl.ly/1w0g3j293m03

开放式雷达报告:http://www.openradar.me/14670329

animation objective-c uikit ios6 ios7

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

Xcode 5中的iOS 6模拟器

我已经安装了Xcode5和iOS 7 SDK,但是我无法在Xcode 5中测试iOS 6模拟器或之前的版本.

我尝试过Xcode - > Preferences - > Downloads - > Components但它没有显示下载iOS 6模拟器的选项.

ios-simulator ios6 ios7 xcode5

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

iOS 6中的自动旋转具有奇怪的行为

我有UITabBarControllerapp播放视频并在其他UITabBar标签中显示其他信息.在iOS 6中,UIView不推荐使用旋转方法,现在我需要使用shouldAutoRotatesupportedInterfaceOrientations方法.对于视频播放,我使用MPMoviePlayerViewController.

如何仅旋转此播放器视图?我只能旋转整个应用程序,但不想这样做.我提出MPMoviePlayerViewController但它不像iOS 5及更早版本那样旋转.

plist设置中我只设置了1个人像界面方向.如果我设置其他 - 整个应用程序将被轮换.

iphone objective-c mpmovieplayercontroller ios ios6

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

Xcode 4.5没有这样的文件或目录 - libCordova.a

铛:错误:没有这样的文件或目录:"/Users/admin/Library/Developer/Xcode/DerivedData/__TESTING__-fzbkvdbnndieeagphtjhdndiyttl/Build/Products/Debug-iphoneos/libCordova.a"

如何让这个缺少libCordova.a

对齐顶部http://www.kerrydeaf.com/libCordova.a.png

更新:对于西蒙日耳曼. 对齐顶部http://www.kerrydeaf.com/update.png

更新:对于西蒙日耳曼.我没有看到"身份和类型".我可以看到"身份".我正在使用xcode 4.5 align top http://www.kerrydeaf.com/id.png

对齐顶部http://www.kerrydeaf.com/update.png

更新:对于西蒙日耳曼.我得到了身份.

对齐顶部http://www.kerrydeaf.com/cor.png

更新:塞缪尔

对齐http://www.kerrydeaf.com/armv6.png

更新:对于Simon Germain - 建筑.

更新:对于james0n - armv.

对齐顶部http://www.kerrydeaf.com/new.png

更新:对于Simon Germain - 建筑.

更新:对于james0n - armv.

 Undefined symbols for architecture i386:
   "_OBJC_CLASS_$_CDVURLProtocol", referenced from:
       objc-class-ref in AppDelegate.o
   "_OBJC_CLASS_$_CDVViewController", referenced from:
       _OBJC_CLASS_$_MainViewController in MainViewController.o
   "_OBJC_METACLASS_$_CDVViewController", referenced from:
       _OBJC_METACLASS_$_MainViewController in MainViewController.o
 ld: symbol(s) not found for architecture i386
 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)

更新:对于james0n - 有效架构. …

xcode ios6

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