我用UINavigationBar和创建一个视图UITabBar.我在标签栏上添加了一个按钮,点击按钮,我隐藏标签栏并在底部显示工具栏.我的代码是针对当前以及之前的iOS版本编写的.我在self.edgesForExtendedLayout = UIRectEdgeNone;iOS7上使用此代码 这是我的代码:
- (void)hideTabBar {
UITabBar *tabBar = self.tabBarController.tabBar;
UIView *parent = tabBar.superview; // UILayoutContainerView
UIView *content = [parent.subviews objectAtIndex:0]; // UITransitionView
UIView *window = parent.superview;enter code here
[UIView animateWithDuration:0.5
animations:^{
CGRect tabFrame = tabBar.frame;
tabFrame.origin.y = CGRectGetMaxY(window.bounds);
tabBar.frame = tabFrame;
// CGRect contentFrame = content.frame;
// contentFrame.size.height -= tabFrame.size.height;
content.frame = window.bounds;
}];
if ([[[UIDevice currentDevice] systemVersion] intValue] < 7.0)
{
CGRect frame = tbl_AllFiles.frame;
frame.size.height -=tabBar.frame.size.height;
tbl_AllFiles.frame = frame;
} …Run Code Online (Sandbox Code Playgroud) 我知道如何在iOS 6中更改导航棒色调颜色:
[UINavigationBar appearance].tintColor = [UIColor colorWithRed:129/255.0 green:200/255.0 blue:244/255.0 alpha:1.0];
Run Code Online (Sandbox Code Playgroud)
我在APPDelegate页面中添加此代码.现在我想在iOS 7中执行此操作,但上面的代码无效.我在网上搜索.我有一个解决方案.通过在每个页面添加以下功能,我可以更改导航颜色.
self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:129/255.0 green:200/255.0 blue:244/255.0 alpha:1.0];
Run Code Online (Sandbox Code Playgroud)
但我需要一个可以添加到APPDelegate功能的功能.请帮我解决这个问题.
我正在开发iOS应用程序,它将向FB朋友发送消息.我授权应用程序和权限.但是无法向朋友发送消息.有没有办法发送消息的朋友.我看到Dropbox正在向朋友发送消息.需要帮忙....