example from ios7 by tutorials