Loading

Wednesday, August 31, 2016

Delete Duplicate Simulators


xcrun simctl list devices | grep -v '^[-=]' | cut -d "(" -f2 | cut -d ")" -f1 | xargs -I {} xcrun simctl delete "{}"

Wednesday, June 8, 2016

Set Constraint

        [ChildView setFrame:ParentView.bounds];
        [ParentView addSubview: ChildView];
        
        [ChildView.centerXAnchor constraintEqualToAnchor: ParentView.centerXAnchor].active = true;

        [ChildView.centerYAnchor constraintEqualToAnchor: ParentView.centerYAnchor].active = true;