This code is used for Show - Hide a UIView on a particular UIButton Click. Put your content on viewMenu. This code will Show - Hide this UIView with animation.
-(IBAction)btnMenu_TouchUpInside:(id)sender{
[self.view bringSubviewToFront:viewMenu];
UIButton* btnSelect = (UIButton*)sender;
btnSelect.selected = !(btnSelect.selected);
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
if(btnSelect.selected)
{
[viewMenu setAlpha:1.0];
}
else
{
[viewMenu setAlpha:0.0];
}
[UIView commitAnimations];
}
Delete Duplicate Simulators
-
xcrun simctl list devices | grep -v '^[-=]' | cut -d "(" -f2 | cut -d ")"
-f1 | xargs -I {} xcrun simctl delete "{}"
8 years ago
thanks a lot but where is the source code for this file
ReplyDelete