小编hye*_*ung的帖子

上传到iTunes商店时出错

使用Xcode 4.3.2.

从昨天开始,我无法上传到iTunes商店.我找不到任何理由.

存档 - >验证......没问题.

但是,分发时发生了错误.

在此输入图像描述

我的应用正在使用Push.

我的Xcode版本是4.3.2.

我该怎么办才能逃脱这种状态?

请帮帮我......谢谢.

iphone itunes-store push-notification ios xcode4.3

9
推荐指数
3
解决办法
4876
查看次数

如何使用Keychain保存密码,如GenericKeychain示例代码

我想在App中保存用户的ID和密码.

保存ID和密码时,推荐的加密方式是什么.

我从越狱或黑客中找到了更安全的方法.

GenericKeychain示例代码怎么样?

http://developer.apple.com/library/ios/#samplecode/GenericKeychain/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007797

我对如何使用像GenericKeychain示例代码的Keychain一样安全.

请告诉我一些建议.谢谢^^*

encryption passwords keychain ios

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

如何控制UILabels的行间距?

我使用CustomCell的,而不是UITableViewCellUITableView.

我把两个放UILablesCustomCell.

提到这个网站:在这里,但我失败了......

问题:如何控制UILabels的行间距?

uitableview uilabel custom-cell ios line-spacing

4
推荐指数
1
解决办法
5982
查看次数

如何控制MPMoviePlayerController的播放部分

我正在使用MPMoviePlayerController制作应用程序.

我想做特别的功能.

我想要的功能是这样的.

如果我播放电影,播放器将在几秒后停止(例如:30秒).

如果我点击播放按钮,播放器必须从30秒播放到下一个停止点.

对我来说,实现这个功能,我使用 initialPlaybackTimeendPlaybackTime的选项MPMoviePlayerContrller.

但是,这个功能并不像我的想法那样有效.

mplayer.initialPlaybackTime = 0;
mplayer.endPlaybackTime = 10;

[mplayer play];

....
[mplayer pause];

,,,

mplayer.initialPlaybackTime = 10;
mplayer.endPlaybackTime = 30;
[mplayer play];

并且,mplayer再次从0到10播放,而不是从10到30播放.

iphone mpmovieplayercontroller ios ios5

4
推荐指数
1
解决办法
1561
查看次数

如何在没有IB的情况下控制对象的自动调整?

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{

    return YES;

}

- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {

    [self positionViews];  

}


-(void)positionViews {

    UIInterfaceOrientation destOrientation = self.interfaceOrientation;
    if (destOrientation == UIInterfaceOrientationPortrait ||
        destOrientation == UIInterfaceOrientationPortraitUpsideDown) {

        [bLabel setFrame:CGRectMake(255, 10, 270, 60)];

    } else { 


        [bLabel setFrame:CGRectMake(377, 10, 270, 60)];

    }   
}
Run Code Online (Sandbox Code Playgroud)

bLabel 是Cutomed对象.

当IPad(设备)旋转时,bLable旋转.但出现时间滞后.因此旋转运动不顺畅.

我的代码有什么缺点?如何在没有IB的情况下自然控制对象的自动调整?

请告诉我你的建议.谢谢!!!

在此输入图像描述

rotation custom-controls autosize ios ios5

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

如何使用AVAudioPlayer播放'http:/ ......./mp3'

我无法播放mp3音频文件.

URL_PATH = @"http://...../.…./A1.mp3";
Run Code Online (Sandbox Code Playgroud)

NSError*错误;

player = [[AVAudioPlayer alloc]initWithContentsOfURL:[NSURL URLWithString:URL_PATH] error:&error];
if (error) 
{
    NSLog(@"error:%@",error.localizedDescription);
}

if (player ==nil)
{
    NSLog(@"nil");
}
else 
{
    NSLog(@"playing");
    [player play];
}  
Run Code Online (Sandbox Code Playgroud)

错误代码 :

error:The operation couldn’t be completed. (OSStatus error -43.)
nil
Run Code Online (Sandbox Code Playgroud)

我能怎么做?请告诉我提示.预先感谢!

objective-c avaudioplayer ios

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