开发中易用的小技巧

2016-10-24  本文已影响0人  coding_chen
  NSString *string = @"1234.56";
    NSArray *array = [string componentsSeparatedByString:@"."];
    NSString *new =[array componentsJoinedByString:@"."];
    UIViewController *rootVC = self.presentingViewController;
    
    while (rootVC.presentingViewController) {
        rootVC = rootVC.presentingViewController;
    }
    [rootVC dismissViewControllerAnimated:YES completion:nil];
上一篇 下一篇

猜你喜欢

热点阅读