Successfully reported this slideshow.
Your SlideShare is downloading. ×

Squeek School #7

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Loading in …3
×

Check these out next

1 of 12 Ad

More Related Content

Slideshows for you (20)

Similar to Squeek School #7 (20)

Advertisement

Recently uploaded (20)

Advertisement

Squeek School #7

  1. 1. squeek school Разработка приложений для iOS
  2. 2. Асинхронная обработка • + (void)detachNewThreadSelector: (SEL)aSelector toTarget:(id)aTarget withObject:(id)anArgument • - (id)initWithTarget:(id)target selector:(SEL)selector object: (id)argument
  3. 3. Посылка сообщений • performSelectorOnMainThread:withObject :waitUntilDone: • performSelector:onThread:withObject:wait UntilDone:
  4. 4. Управление потоком • isExecuting - выполняется ли поток • isFinished - закончил ли выполнение • isCanceled - отменил ли меня кто-нибудь • можно [thread cancel], тогда он узнает, что его отменили, и выйдет • каждый Thread можно запускать только один раз • isFinished поток нельзя запусть еще раз • [NSThread exit] - закрывает текущий поток
  5. 5. А поспать? • [NSThread sleepUntilDate:(NSDate *)] • [NSThread sleepForTimeInterval:(float)] в секундах • сон действует на текущий поток
  6. 6. iPad
  7. 7. UIPopoverController
  8. 8. UIPopoverController - (IBAction)toolbarItemTapped:(id)sender { MyCustomViewController* content = [[MyCustomViewController alloc] init]; UIPopoverController* aPopover = [[UIPopoverController alloc] initWithContentViewController:content]; aPopover.delegate = self; [content release]; self.popoverController = aPopover; [aPopover release]; [self.popoverController presentPopoverFromBarButtonItem:sender permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; }
  9. 9. UISplitViewController
  10. 10. UISplitViewController - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { MyFirstViewController* firstVC = [[[MyFirstViewController alloc] init] autorelease]; MySecondViewController* secondVC = [[[MySecondViewController alloc] init] autorelease]; UISplitViewController* splitVC = [[UISplitViewController alloc] init]; splitVC.viewControllers = [NSArray arrayWithObjects:firstVC, secondVC, nil]; [window addSubview:splitVC.view]; [window makeKeyAndVisible]; return YES; } UISplitViewControllerDelegate – splitViewController:willHideViewController:withBarButtonItem:forPopoverController: – splitViewController:willShowViewController:invalidatingBarButtonItem: – splitViewController:popoverController:willPresentViewController:
  11. 11. ios 5 • Новые уведомления • iCloud - хранилище для ваших приложений • iMessages - нам не дали API :( - дали отображение сообщний Messages-like • Олег покажет вживую :)
  12. 12. Gesture Recognizing • Swipe • Pan • Tap • PinchGestureRecognizer • LongPress • RotationGestureRecognizer

Editor's Notes

  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

×