Smooth Rounded Corners in PhotoShop

No Comments

In PhotoShop:

  1. Open an image on which we add rounded corners or create blank image.
  2. Add a new layer on top, so image has its own layer under the newly created layer.
  3. Selected “Rounded Rectangle Tool” and draw rectangle on the new layer.
  4. Double click on the layer that you just drew the rounded rectangle on.
  5. In the Advanced Blending area, play with the Fill Opacity percentage. Make it 0% if real image (not blank) is underneath it.
  6. Click on the Paths tab., select the path, click on the little arrow button, in the upper right corner, and select “Make Selection…”.
  7. In the “Make Selection” option box, make sure Feather Radius is set to 0 pixels, and Anti–aliased IS checked.
  8. Finally, with the selection still pending action, go to Edit, Copy Merged. Create a new document, and leave the dimensions alone. In the new document, go to Edit, Paste. That’s it!

Presenting UIViewController Modally with Transition Effects

No Comments

These are a few ways of how to present UIViewController modally with transition effects.

UIViewController *controller = [[[MyViewController alloc] init] autorelease];

UIViewAnimationTransition trans = UIViewAnimationTransitionCurlUp;

[UIView beginAnimations: nil context: nil];

[UIView setAnimationTransition: trans forView: [self window] cache: YES];

[navController presentModalViewController: controller animated: NO];

[UIView commitAnimations];

UIViewController *controller = [[[MyViewController alloc] init] autorelease];

controller.view.alpha = 0.0;

[navController presentModalViewController: controller animated: NO];

[UIView beginAnimations: nil context: nil];

controller.view.alpha = 1.0;

[UIView commitAnimations];

MyViewController *controller = [[MyViewController alloc] initWithNibName: @”MyTableView” bundle: nil];

controller.delegate = self;

controller.modalTransitionStyle = UIModalTransitionStyleCoverVertical;

[self presentModalViewController: controller animated: YES];

[controller release];