小编use*_*789的帖子

隐藏tabBar显示Ios7中的黑条

我正在使用此代码隐藏TabBar:

self.tabBarController.tabBar.hidden=YES;
Run Code Online (Sandbox Code Playgroud)

我在我的项目中隐藏了tabBarController.但它在Ios7的视图底部显示了黑条.当我回到相同的视图时它看起来很好.任何帮助将不胜感激.

xcode objective-c ios swift

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

如何在iOS中获取用户的国家/地区呼叫代码?

我正在开发一个用户输入手机号码的iOS应用程序.我如何获得他们的国家/地区呼叫代码?例如,如果用户在印度,+91则应自动添加前缀.是否有自动添加国家/地区代码的选项?

iphone xcode ios5

36
推荐指数
6
解决办法
4万
查看次数

在推送通知中将CER转换为PEM文件时出错

http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1

我正在关注ablove链接以启用我的app的推送通知.当我将cer文件转换为pem文件时出现错误

system17:~ sairam$ openssl x509 -in aps_development.cer -inform der -out PushChatCert.pem

Error opening Certificate aps_development.cer
2383:error:02001002:system library:fopen:No such file or directory:/SourceCache/OpenSSL098/OpenSSL098-35.2/src/crypto/bio/bss_file.c:356:fopen('aps_development.cer','r')
2383:error:20074002:BIO routines:FILE_CTRL:system lib:/SourceCache/OpenSSL098/OpenSSL098-35.2/src/crypto/bio/bss_file.c:358:
unable to load certificate
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激.谢谢

push-notification apple-push-notifications ios

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

NSTimer不会停止

     [self performSelectorInBackground:@selector(method) withObject:nil];

    -(void)method 
    {
    timer1 = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(getLastImageName1) userInfo:nil repeats:YES];
                runLoop = [NSRunLoop currentRunLoop];
                [runLoop addTimer:timer1 forMode:NSRunLoopCommonModes];
                [runLoop run];
    }

-(void)viewdidunload
{
  [timer1 invalidate];
  timer1=nil;
}
Run Code Online (Sandbox Code Playgroud)

我开始TimerHomeViewController连我无效,它一直在运行OtherViewController.我的代码出了什么问题?

iphone objective-c nstimer ios

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