ios - Error "expression is not assignable" on timerBar.bounds.size.width assignment -
I am trying to create a timer bar, but I am getting an error "expression is not assigned" on Timerbar.bound. size.width = 0
(zero) viewDidoadload {[Super Viewedload]; // Setup an additional after loading the view, usually from a nib Self.view.backgroundColor = [UIColor blueColor]; TimerBar = [[UIView alloc] initWithFrame: CGRectMake (0, 0, SCREEN_WIDTH, 5)]; Timerbar Background color = [UIColor whiteColor]; [Self.view addSubview: timer bar]; [UIView CheatVirtuality: 2 Delay: 0 Option: UIViewAnimationOptionCurveLinear Animation: ^ {timerBar.bounds.size.width = 0; } Closing: ^ (BOOL Finish) {}]; }
What am I doing wrong? Why can not the value be assigned?
You can not set the width of the boundaries to zero!
Comments
Post a Comment