Powered By Blogger

Saturday, March 31, 2012

iPhone SDKs and APIs

Hi Friends,
I'm going to list out some useful APIs/ SDKs for iOS Application Development environment. So, please make your closure look here.


1) Foursquare Real Time API
The foursquare APIv2 gives you access to all of the data used by the foursquare mobile applications, and, in some cases, even more.
Link : https://developer.foursquare.com/docs/realtime.html

2) Verizon Network APIs
Integrate into your mobile application Verizon's rich array of network functions.
LINK : http://developer.verizon.com/content/vdc/en/verizon-tools-apis/verizon_apis/network-api.html

3) Instagram API
Use these REST and Search APIs to utilize Instagram photos within your app.
Link  : http://instagram.com/developer/

4) Twitter :
 REST API, real-time search index, and streaming API to get tweets in real-time.
Link : https://dev.twitter.com/

5) Dropbox
Dropbox is a free service that lets you bring all your photos, docs, and videos anywhere, and share them easily.
Link : http://www.dropbox.com/developers/releases

6) Bump
Users "bump" their phones to share data within an app.
Link : http://bu.mp/api

7) iPhone ARKit
iPhone ARKit is an Objective-C augmented reality kit for iPhone.
Link : https://github.com/zac/iphonearkit/

8) Core AR
Core AR AR(Augmented reality) framework for iOS, based on a visual code like ARToolKit.
Link : https://github.com/sonsongithub/CoreAR

9) Viewdle Face Recognition
Viewdle's face recognition products to instantly tag friends & share your photos and videos as you create them, from your mobile phone, desktop, or browser!
Link : http://www.viewdle.com/products/ios/index.html

10) PDF Reader
Basic PDF Reader/Viewer for iOS.
Link : https://github.com/vfr/Reader

11) PSGoogleReader
Google Reader class for iOS (iPhone / iPad / iPod Touch).
Link : https://github.com/perspecdev/PSGoogleReader

12) Kal Calendar
A calendar component for the iPhone (the UI is designed to match MobileCal).

Link : https://github.com/klazuka/Kal

13) TouchRSS
TouchRSS is a general purpose RSS and Atom reading framework.
Link : https://github.com/TouchCode/TouchRSS

14) TouchJSON
TouchJSON is an Objective-C based parser and generator for JSON encoded data. TouchJSON compiles for Mac OS X and iOS devices (currently iPhone, iPad and iPod Touch).
Link : https://github.com/TouchCode/TouchJSON

15) ASIHTTPRequest
ASIHTTPRequest is an easy to use wrapper around the CFNetwork API that makes some of the more tedious aspects of communicating with web servers easier. It is written in Objective-C and works in both Mac OS X and iPhone applications.
Link : http://allseeing-i.com/ASIHTTPRequest/

16) Mobile App Tracking
Track all your mobile web and app-2-app installs with one SDK.
Link : https://platform.mobileapptracking.com/#!/advertiser

17) ZipWeather
ZipWeather allows you to look up weather conditions by ZIP Code.
Link : http://www.appsamuck.com/day15.html

18) PhoneGap
PhoneGap is an HTML5 app platform that allows you to author native applications with web technologies and get access to APIs and app stores.
Link : http://www.phonegap.com/docs

19) Route-Me
Route-Me is an open source map library that runs natively on iOS. It's designed to look and feel much like the inbuilt iOS map library, but it's entirely open, and works with any map source.
Link : https://github.com/route-me/route-me

20)MobClix
Mobclix manages everything for you – bringing the best ads to one platform, and handling all the details so you can stay focused on building great apps.
Link : http://www.mobclix.com/developer

If any one has query then place you it over here.

Thanks and Regards,
Nilesh Prajapati
 

Friday, March 23, 2012

Symbolication for iOS Application

Hello all,
Here I'm going to share the Symbolization method for Crash log for finding the excat reason of crash in application. so please follow the steps to get into. These will surely help you.

•    Create new dir on desktop or wherever
   •    Find archive in question in Xcode organizer
    •    Double tap to reveal in finder
   •    Double tap to show bundle contents
   •    Copy .dSYM file and .app file into new dir
   •    cd into new dir
   •    Run this command: atos -arch armv7 -o 'Vimeo.app'/'Vimeo'
   •    Terminal will enter an interactive move
   •    Paste in memory address and hit enter, it will output method name and line number
    •    Alternatively, enter this command: atos -arch armv7 -o 'Vimeo.app'/'Vimeo' To get info for one address only




If any one has query then place you it over here.

Thanks and Regards,
Nilesh Prajapati
 

Wednesday, March 21, 2012

UIDeviceOrientationDidChangeNotification

Hi,
By using below code, you will be able to get notification about your device orientation. You just simply need to include these methods into your controller for which you want to find the device orientation for performing different operations.

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
   
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(didRotate:)
                                                 name:UIDeviceOrientationDidChangeNotification
                                               object:nil];
}

-(void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:YES];
   
    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil];
}

-(void)didRotate:(NSNotification *)notification
{
    UIInterfaceOrientation newOrientation =  [UIApplication sharedApplication].statusBarOrientation;
    if ((newOrientation == UIInterfaceOrientationLandscapeLeft || newOrientation == UIInterfaceOrientationLandscapeRight))
    {
    }
    else if (newOrientation == UIInterfaceOrientationPortrait || newOrientation == UIInterfaceOrientationPortraitUpsideDown)
    {
    }
}


If you have still any question , you can share it over here.

Thanks and Regards,
Nilesh Prajapati
 

Create JSON without using SBJSON

Hello every one,
This one is to create simple json format without using JSON framework.  This one is just example not a replacement for JSON framework.


+(NSString *)createJSONString:(NSDictionary *) dictionary
{
NSArray *jsonKeys = [dictionary allKeys];
NSArray *jsonKeyValues = [dictionary allValues];

NSString *jsonString = @"{";

for (int j=0; j<[jsonKeys count ]; j++) {
 
NSDictionary *dictFromArray = [jsonKeyValues objectAtIndex:j];
NSArray *keyArray = [dictFromArray allKeys];
jsonString = [NSString stringWithFormat:@"%@\"%@\":",jsonString, [jsonKeys objectAtIndex:j]];
NSArray *valueArray = [dictFromArray allValues];
// to check its empty dictionary
if ([keyArray count] != 0) {
for (int i = 0; i<[keyArray count];i++) {
if (i == 0) {
jsonString =[NSString stringWithFormat:@"%@{ \"%@\": \"%@\", ",jsonString,[keyArray objectAtIndex:i],[valueArray objectAtIndex:i]];
}//to check lost element of single dictionary
else if((i == [keyArray count]-1) ) {
if (j != [jsonKeys count]-1) {
// to check whether last element combined dictionary
jsonString =[NSString stringWithFormat:@" %@ \"%@\":\"%@\" },",jsonString,[keyArray objectAtIndex:i],[valueArray objectAtIndex:i]];
}else
{
jsonString =[NSString stringWithFormat:@" %@ \"%@\":\"%@\" }",jsonString,[keyArray objectAtIndex:i],[valueArray objectAtIndex:i]];
}
}else {
jsonString =[NSString stringWithFormat:@"%@ \"%@\":\"%@\", ",jsonString,[keyArray objectAtIndex:i],[valueArray objectAtIndex:i]];
}
}
}else {
  
if (j != [jsonKeys count]-1) {
jsonString =[NSString stringWithFormat:@"%@{},",jsonString];
}else
{
jsonString =[NSString stringWithFormat:@"%@{}",jsonString];
   
}
}
}

jsonString =[NSString stringWithFormat:@"%@ }",jsonString];

return jsonString;
}


If any one has query then place you it over here.

Thanks and Regards,
Nilesh Prajapati
 

Wednesday, March 7, 2012

View Transition with Navigation

Hello,
 If you want to make transition effect having navigation for UIView in your application then please follow the below code:   


      [UIView transitionWithView:self.view.window
                          duration:1.0f
                           options:UIViewAnimationOptionTransitionCurlDown
                        animations:^{
                            [self.navigationController popViewControllerAnimated:NO];
                        }
                        completion:NULL];


        UIViewController *viewController = [[UIViewController alloc] initWithNibName:@"NibFileName" bundle:nil];
        [UIView transitionWithView:self.view.window
                          duration:1.0f
                           options:UIViewAnimationOptionTransitionCurlUp
                        animations:^{
                            [self.navigationController pushViewController:viewController animated:NO];
                        }
                        completion:NULL];
        [viewController release];


Still if any one has query then place you it over here.

Thanks and Regards,
Nilesh Prajapati
 

Custom UIPageControl

Hello,
This code is useful for creating your custom page control having different color.


#import <Foundation/Foundation.h>


@interface GrayPageControl : UIPageControl
{
    UIImage* activeImage;
    UIImage* inactiveImage;
}
@property(nonatomic, retain) UIImage* activeImage;
@property(nonatomic, retain) UIImage* inactiveImage;
@end


#import "GrayPageControl.h"


@implementation GrayPageControl
@synthesize activeImage;
@synthesize inactiveImage;

-(id) initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    activeImage = [UIImage imageNamed:@"active_page_image.png"];
    inactiveImage = [UIImage imageNamed:@"inactive_page_image.png"];
    return self;
}

-(void)updateDots
{
    for (int i = 0; i < [self.subviews count]; i++)
    {
        UIImageView* dot = [self.subviews objectAtIndex:i];
        if (i == self.currentPage)
            dot.image = activeImage;
        else
            dot.image = inactiveImage;
    }
}

-(void)setCurrentPage:(NSInteger)page
{
    [super setCurrentPage:page];
    [self updateDots];
}

@end

After creating these two files in your project you have to declare:
 IBOutlet UIPageControl *nameObject;
in which you want to use this control and then you have to set his class in .XIB file as "GrayPageControl".



If any one has query then place you it over here.

Thanks and Regards,
Nilesh Prajapati