小编nei*_*lco的帖子

如何在iOS中隐藏动画标签栏?

所以我有一个连接到IBAction的按钮.当我按下按钮时,我想用动画隐藏iOS应用程序中的标签栏.这个[self setTabBarHidden:hidden animated:NO]; 或这个[self.tabBarController setTabBarHidden:hidden animated:YES];不起作用.这是没有动画的代码:

- (IBAction)picture1:(id)sender {
    [self.tabBarController.tabBar setHidden:YES];
}
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激:D

uitabbarcontroller uitabbar ibaction ios

57
推荐指数
9
解决办法
7万
查看次数

GPPSignInButton在使用故事板时未加载GooglePlus.bundle

使用Google+ SignIn for iOS SDK v1.4.1,我在课堂GPPSignInButton故事板的视图中放置了一个类按钮.它连接到GPPSignInButton插座.GooglePlus.bundle已添加到项目中并被复制到应用程序包中,可以在运行时从应用程序中加载(以编程方式).

当我在设备或模拟器中运行应用程序时,按钮为蓝色.

在此输入图像描述

我希望它会显示一个带有Google+按钮的红色登录信息.以编程方式创建按钮会生成一个正确显示的按钮.检查通过故事板实例化的按钮的子视图以及以编程方式创建的按钮的子视图,显示故事板按钮缺少UIImageView实例.

-ObjC链接标志.我甚至试过添加-all_load没有效果.

我怀疑有一个错误GPPSignInButtoninitWithCoder:.任何人都可以确认或复制这个吗?

ios google-plus uistoryboard ios7

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

iOS 7中的NSDateFormatter字符串

尝试在iOS 7中格式化日期并在一周中的某一天获得意外结果.Apple的文档没有列出iOS 7的模式,但是为iOS 6提供的模式就在这里.看一周中的那一天

星期几 - 短日内使用一到三个字母,全名使用四个字母,或缩小名称使用五个字母.

但是我无法获得4个字母的全名格式化程序字符串.

NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"EEE"];
NSLog(@"%@", [formatter stringFromDate:date]);
Run Code Online (Sandbox Code Playgroud)

打印"星期三"

NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"EEEE"];
NSLog(@"%@", [formatter stringFromDate:date]);
Run Code Online (Sandbox Code Playgroud)

还打印"星期三",应打印"星期三"

NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"EEEEE"];
NSLog(@"%@", [formatter stringFromDate:date]);
Run Code Online (Sandbox Code Playgroud)

打印"W"

是否有一组新的格式化字符串应该用于iOS 7或我做错了什么?

date ios ios7

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

在特立独行时安装黄瓜时出错

我收到以下错误..

RROR:  Error installing calabash-cucumber:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for main() in -lc... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
--with-gherkin_lexer_ar-dir
--without-gherkin_lexer_ar-dir
--with-gherkin_lexer_ar-include
--without-gherkin_lexer_ar-include=${gherkin_lexer_ar-dir}/include
--with-gherkin_lexer_ar-lib
--without-gherkin_lexer_ar-lib=${gherkin_lexer_ar-dir}/
--with-clib
--without-clib
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:430:in `try_do': The compiler failed to generate an …
Run Code Online (Sandbox Code Playgroud)

cucumber osx-mavericks

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

如何通过hashtag检索推文而无需身份验证?

我需要使用Twitter API 1.1更新我的应用程序.以前我使用以下网址检索推文:

http://search.twitter.com/search.json?tag=ios&rpp=25

但现在它不起作用.我尝试使用Twitter API文档中的以下URL:

https://api.twitter.com/1.1/search/tweets.json?q=%23freebandnames&since_id=24012619984051000&max_id=250126199840518145&result_type=mixed&count=4.

但它返回以下错误:

{"errors":[{"message":"Bad Authentication data","code":215}]}
Run Code Online (Sandbox Code Playgroud)

我该如何检索这些推文?

我想使用Twitter.framework,但任何建议将不胜感激.

iphone twitter ios

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