小编use*_*602的帖子

删除mongodb的日志文件是否安全?

如果我删除3.1G日志文件,sudo service mongodb restart将失败.但是,这个文件占用了太多空间.我怎么解决这个问题?我该如何删除它?

bash$ du -sh /var/lib/mongodb/*
4.0K    _tmp
65M auction_development.0
128M    auction_development.1
17M auction_development.ns
3.1G    journal
4.0K    mongod.lock
Run Code Online (Sandbox Code Playgroud)

linux disk mongodb

64
推荐指数
3
解决办法
4万
查看次数

UINavigationController里面的UITabBarController里面的UITableViewController

我的问题

我在UINavigationController中使用UITabBarController.UITabBarController中有三个tableviews.如图所示,第一个表视图正确显示,而其他两个tableviews部分隐藏在导航栏后面.我怎样才能解决这个问题?

在此输入图像描述 在此输入图像描述 在此输入图像描述

我的等级:

  • Root:UINavigationController
    • 的UITabBarController
      • UITableViewController(table1,table2,table3)

这是我的代码:

AppDelegate.m

#import "AppDelegate.h"
#import "TableViewController.h"
@interface AppDelegate()
@property UINavigationController* nav;
@end

@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    // Override point for customization after application launch.
    TableViewController* table1 = [[TableViewController alloc]init];
    TableViewController* table2 = [[TableViewController alloc]init];
    TableViewController* table3 = [[TableViewController alloc]init];
    table1.title = @"table1";
    table2.title = @"table2";
    table3.title = @"table3";
    UITabBarController* t = [[UITabBarController alloc] init];
    [t setViewControllers:@[table1,table2,table3]];
    self.nav = [[UINavigationController alloc] initWithRootViewController:t];
    [self.window setRootViewController:self.nav];
    [self.window …
Run Code Online (Sandbox Code Playgroud)

objective-c uitabbarcontroller uitableview uinavigationcontroller ios

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