Hızlı Cocoa Geliştirme (Develop your next cocoa app faster!)

1,693 views
1,531 views

Published on

My keyno

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,693
On SlideShare
0
From Embeds
0
Number of Embeds
43
Actions
Shares
0
Downloads
9
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Hızlı Cocoa Geliştirme (Develop your next cocoa app faster!)

  1. 1. Hızlı Cocoa Geliştirme @sarperdag
  2. 2. GitHubhttps://github.com/languages/Objective-C
  3. 3. AFNetworking https://github.com/AFNetworking/AFNetworkingNSURL  *url  =  [NSURL  URLWithString:@"https://alpha-­‐api.app.net/stream/0/posts/stream/global"];NSURLRequest  *request  =  [NSURLRequest  requestWithURL:url];AFJSONRequestOperation  *operation  =  [AFJSONRequestOperation  JSONRequestOperationWithRequest:request  success:^(NSURLRequest  *request,  NSHTTPURLResponse  *response,  id  JSON)  {        NSLog(@"App.net  Global  Stream:  %@",  JSON);}  failure:nil];[operation  start];
  4. 4. FSNetworking https://github.com/foursquare/FSNetworkingNSURL  *url                                =  ...;  //  requiredNSDictionary  *headers          =  ...;  //  optionalNSDictionary  *parameters    =  ...;  //  optionalFSNConnection  *connection  =[FSNConnection  withUrl:url                                method:FSNRequestMethodGET                              headers:headers                        parameters:parameters                        parseBlock:^id(FSNConnection  *c,  NSError  **error)  {                                return  [c.responseData  dictionaryFromJSONWithError:error];                        }              completionBlock:^(FSNConnection  *c)  {                      NSLog(@"complete:  %@n    error:  %@n    parseResult:  %@n",  c,  c.error,  c.parseResult);              }                  progressBlock:^(FSNConnection  *c)  {                          NSLog(@"progress:  %@:  %.2f/%.2f",  c,  c.uploadProgress,  c.downloadProgress);                  }];[connection  start];
  5. 5. RestKIT https://github.com/RestKit/RestKit@interface  Tweet  :  NSObject@property  (nonatomic,  copy)  NSNumber  *userID;@property  (nonatomic,  copy)  NSString  *username;@property  (nonatomic,  copy)  NSString  *text;@endRKObjectMapping  *mapping  =  [RKObjectMapping  mappingForClass:[RKTweet  class]];[mapping  addAttributeMappingsFromDictionary:@{        @"user.name":      @"username",        @"user.id":          @"userID",        @"text":                @"text"}];RKResponseDescriptor  *responseDescriptor  =  [RKResponseDescriptor  responseDescriptorWithMapping:mapping  pathPattern:nil  keyPath:nil  statusCodes:nil];NSURL  *url  =  [NSURL  URLWithString:@"http://api.twitter.com/1/statuses/public_timeline.json"];NSURLRequest  *request  =  [NSURLRequest  requestWithURL:url];RKObjectRequestOperation  *operation  =  [[RKObjectRequestOperation  alloc]  initWithRequest:request  responseDescriptors:@[responseDescriptor]];  [operation  setCompletionBlockWithSuccess:^(RKObjectRequestOperation  *operation,  RKMappingResult  *result)  {        NSLog(@"The  public  timeline  Tweets:  %@",  [result  array]);}  failure:nil];[operation  start];
  6. 6. MBProgressHUDhttps://github.com/jdg/MBProgressHUD MBProgressHUD  *hud  =  [MBProgressHUD   showHUDAddedTo:self.view  animated:YES]; hud.mode  =  MBProgressHUDModeAnnularDeterminate; hud.labelText  =  @"Loading"; [self   doSomethingInBackgroundWithProgressCallback:^(float   progress)  {        hud.progress  =  progress; }  completionCallback:^{        [MBProgressHUD  hideHUDForView:self.view   animated:YES]; }];
  7. 7. SVPullToRefresh https://github.com/samvermette/SVPullToRefresh[tableView  addPullToRefreshWithActionHandler:^{        //  prepend  data  to  dataSource,  insert  cells  at  top  of  table  view        //  call  [tableView.pullToRefreshView  stopAnimating]  when  done}];
  8. 8. ColorSense https://github.com/omz/ColorSense-for-Xcode Plugin for Xcode to make working with colors more visualhttp://www.youtube.com/watch?v=eblRfDQM0Go
  9. 9. NUIhttps://github.com/tombenner/nui
  10. 10. NUI@primaryFontName:  HelveticaNeue;@secondaryFontName:  HelveticaNeue-­‐Light;@primaryFontColor:  #333333;@primaryBackgroundColor:  #E6E6E6;Button  {        background-­‐color:  @primaryBackgroundColor;        border-­‐color:  #A2A2A2;        border-­‐width:  @primaryBorderWidth;        font-­‐color:  @primaryFontColor;        font-­‐color-­‐highlighted:  #999999;        font-­‐name:  @primaryFontName;        font-­‐size:  18;        corner-­‐radius:  7;}NavigationBar  {        background-­‐tint-­‐color:  @primaryBackgroundColor;        font-­‐name:  @secondaryFontName;        font-­‐size:  20;        font-­‐color:  @primaryFontColor;
  11. 11. PSTCollectionView https://github.com/steipete/PSTCollectionViewOpen Source, 100% API compatible replacement of UICollectionView for iOS4.3+UICollectionViewFlowLayout  *flowLayout  =  [UICollectionViewFlowLayout  new];PSTCollectionView  *collectionView  =  [PSTCollectionView  alloc]  initWithFrame:self.view.bounds  collectionViewLayout:(PSTCollectionViewFlowLayout  *)flowLayout];
  12. 12. QuickDialoghttps://github.com/escoz/QuickDialog
  13. 13. BlockAlertshttps://github.com/gpambrozio/BlockAlertsAnd- ActionSheets BlockAlertView  *alert  =  [BlockAlertView  alertWithTitle:@"Alert  Title"                                                                                              message:@"This  is  a  very  long   message,  designed  just  to  show  you  how  smart  this  class  is"]; [alert  addButtonWithTitle:@"Do  something  cool"  block:^{        //  Do  something  cool  when  this  button  is  pressed }]; [alert  setCancelButtonWithTitle:@"Please,  dont  do  this"  block:^{        //  Do  something  or  nothing....  This  block  can  even  be  nil! }]; [alert  setDestructiveButtonWithTitle:@"Kill,  Kill"  block:^{        //  Do  something  nasty  when  this  button  is  pressed }];
  14. 14. SEHumanizedTimeDiff https://github.com/sarperdag/SEHumanizedTimeDiff//1  minutemyLabel.text  =  [[NSDate  dateWithTimeIntervalSinceNow:-­‐360]                                stringWithHumanizedTimeDifference:NSDateHumanizedSuffixNone                                withFullString:NO];//This  will  return  @"1m"//2  daysmyLabel.text  =  [[NSDate  dateWithTimeIntervalSinceNow:-­‐3600*24*2]                                stringWithHumanizedTimeDifference:NSDateHumanizedSuffixAgo                                withFullString:YES];//This  will  return  @"2  days  ago"
  15. 15. HPSocialNetworkManagerhttps://github.com/Hipo/HPSocialNetworkManager iOS framework for handling authentication to Facebook and Twitter with reverse-auth support.
  16. 16. STTweetLabel https://github.com/ SebastienThiebaud/STTweetLabel/ STTweetLabel  *tweetLabel  =  [[STTweetLabel  alloc]  initWithFrame:CGRectMake(20.0,   60.0,  280.0,  200.0)];        [tweetLabel  setFont:[UIFont  fontWithName:@"HelveticaNeue"  size:17.0]];        [tweetLabel  setTextColor:[UIColor  blackColor]];        [tweetLabel  setDelegate:self];        [tweetLabel  setText:@"Hi.  This  is  a  new  tool  for  @you!  Developed  by-­‐ >@SebThiebaud  for  #iPhone  #ObjC...  ;-­‐)  My  GitHub  page:  https://t.co/pQXDoiYA"];        [self.view  addSubview:tweetLabel];
  17. 17. DTCoreTexthttps://github.com/Cocoanetics/DTCoreText
  18. 18. iRatehttps://github.com/nicklockwood/iRate iRate is a library to help you promote your iPhone and Mac App Store apps by prompting users to rate the app after using it for a few days. This approach is one of the best ways to get positive app reviews by targeting only regular users (who presumably like the app or they wouldnt keep using it!).
  19. 19. iOSImageFiltershttps://github.com/esilverberg/ios-image-filters #import  "ImageFilter.h" UIImage  *image  =  [UIImage   imageNamed:@"landscape.jpg"]; self.imageView.image  =  [image  sharpen]; //  Or self.imageView.image  =  [image  saturate: 1.5]; //  Or self.imageView.image  =  [image  lomo];
  20. 20. CorePlothttp://code.google.com/p/core-plot/
  21. 21. TestFlighthttps://testflightapp.com/
  22. 22. CocoaControlshttp://www.cocoacontrols.com
  23. 23. BinPress
  24. 24. Good artists copy; great artists steal Steve Jobs

×