Extreme flicker when switching between ios7 screens

After upgrading to xcode 5, I noticed that when flicking between two screens, a flicker appears on the edge of the screen. Flicker appears as a vertical white line at the edge of the frame. It seems to only happen on ios7.

The transition that I have between the two screens is through the storyboard scene.

UPDATE:

I fixed the problem by adding: self.view.clipsToBounds = YES; to my views.

+4
source share
4 answers

I understood the question. I had to set clipsToBoundsin YESin my views. This fixes the problem.

+11
source

iOS7 . , GCD, .

dispatch_sync(dispatch_get_main_queue(), ^{
      // Update UI (e.g. Alert, label changes etc)
});

dispatch_async(dispatch_get_main_queue(), ^{
      // Update UI (e.g. Alert, label changes etc)
});

.

0

TableView Segues iOS7, BOBO . , viewDidAppear, viewDidLoad. :

- (void)viewDidLoad
{
    [super viewDidLoad];

    tableData = [NSArray arrayWithObjects:@"First", @"Second", @"Third", nil];
    [self.tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];
    UIEdgeInsets inset = UIEdgeInsetsMake(5, 0, 0, 0);
    self.tableView.contentInset = inset;

//Don't load your background image or color here
}


-(void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];

    [[AppDelegate sharedInstance] setNavTitle:@"Title"];

//load your background image here

    self.parentViewController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage     imageNamed:@"FirstViewBackground"]];
    self.tableView.backgroundColor = [UIColor clearColor];



}
0

, .

I had a custom UIView inside a Container View. The Container View had a background color (maybe I accidentally did this) set to white. And between the transitions, I saw the flickering of white lines (sometimes, randomly). When I set the Container View color to Default, the flicker on the transitions faded.

0
source

Source: https://habr.com/ru/post/1525390/


All Articles