小编May*_*war的帖子

使用UITabBar按钮时,TabBar按钮变为无法点击

我用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)

xcode uitoolbar ios7

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

更改导航栏色调iOS 7.

我知道如何在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功能的功能.请帮我解决这个问题.

uinavigationbar uicolor ios appdelegate ios7

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

录制视频,如触摸藤蔓应用程序

我正在制作视频应用.我想在Vine应用程序中录制视频.表示点击并在删除点击时停止记录.请告诉我如何在触摸时添加框架.

xcode

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

使用图形api向Facebook好友发送消息

我正在开发iOS应用程序,它将向FB朋友发送消息.我授权应用程序和权限.但是无法向朋友发送消息.有没有办法发送消息的朋友.我看到Dropbox正在向朋友发送消息.需要帮忙....

facebook-graph-api ios

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