Squeek School #7
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Squeek School #7

on

  • 4,101 views

 

Statistics

Views

Total Views
4,101
Views on SlideShare
890
Embed Views
3,211

Actions

Likes
0
Downloads
16
Comments
0

4 Embeds 3,211

http://school.squeek.ru 3192
http://iamdev.mobi 16
url_unknown 2
http://webcache.googleusercontent.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Squeek School #7 Presentation Transcript

  • 1. squeek schoolРазработка приложений для iOS
  • 2. Асинхронная обработка• + (void)detachNewThreadSelector: (SEL)aSelector toTarget:(id)aTarget withObject:(id)anArgument• - (id)initWithTarget:(id)target selector:(SEL)selector object: (id)argument
  • 3. Посылка сообщений• performSelectorOnMainThread:withObject :waitUntilDone:• performSelector:onThread:withObject:wait UntilDone:
  • 4. Управление потоком• isExecuting - выполняется ли поток• isFinished - закончил ли выполнение• isCanceled - отменил ли меня кто-нибудь• можно [thread cancel], тогда он узнает, что его отменили, и выйдет• каждый Thread можно запускать только один раз• isFinished поток нельзя запусть еще раз• [NSThread exit] - закрывает текущий поток
  • 5. А поспать?• [NSThread sleepUntilDate:(NSDate *)]• [NSThread sleepForTimeInterval:(float)] в секундах• сон действует на текущий поток
  • 6. iPad
  • 7. UIPopoverController
  • 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:UIPopoverArrowDirectionAnyanimated:YES];}
  • 9. UISplitViewController
  • 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. ios 5• Новые уведомления• iCloud - хранилище для ваших приложений• iMessages - нам не дали API :( - дали отображение сообщний Messages-like• Олег покажет вживую :)
  • 12. Gesture Recognizing• Swipe• Pan• Tap• PinchGestureRecognizer• LongPress• RotationGestureRecognizer