Sunday, May 22, 2011

Get Apple Developer Certificate

What is Apple Developer Certificate.
Apple developer certificate is the utility which allow developers to download signing certificates for iOS/mac/safari applications.Without Apple developer certificate developer can't get App IDs for applications, and without App ID developer can't create provision profile which necessary to deploy an application on device and upload on App store.



Follow these steps to get Apple Developer 


Certificate: 

Step 1: Register as an Apple Developer by visiting: http://developer.apple.com/programs/register/

Step 2: Click on Get Started button on top left side.



Step 3: Choose any one option.
If you have not registered as an Apple developer or do not have an iTunes, Apple Online Store or MobileMe account, you will need to create an Apple ID, So choose Create an Apple ID.

And If you have already registered as an Apple developer or have an iTunes, Apple Online Store or MobileMe account, you can use your existing Apple ID to sign in, So choose Use an existing Apple ID.

Step 4: If u will choose Create an Apple ID, Fill all desired information and last you will find this screen .






Step 5: If u will choose Use an existing Apple ID, you will find this screen:






Fill all desired information and you will find this screen:






Step 6:  Click on Join Today under "Join the Developer Programs", you will find this screen: 


Step 7: Click on Continue, fill all desired fields and at last you will find this screen:
During this process if you will apply as an individual then below screen with enrollment status will be unto "Purchase Program".
If you will apply as an Company then it will take some time(a week/15 days some times a month also) for verification to reach up to  "Purchase Program" status.



Step 8:  Just Download that Purchase Form(pdf) and send it according to mentioned information in it.

Step 9: Once you've completed your purchase, you will receive an Order Acknowledgement email from the Apple Online Store and an Activation email within 24 hours from Apple Developer Support. The email from Apple Developer Support will contain information on how to access the resources of your Program.

Monday, March 21, 2011

iPhone/iPad Technical Interview Question(FAQ) with answers(Part 1)

Q1.What is the iPhone Application Entry point?
A. The main function:
int main(int argc, char *argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    int retVal = UIApplicationMain(argc, argv, nil, nil);
    [pool release];
    return retVal;
 }

Q2.What is the GUI Entry Point?
A. 
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

    
    // Override point for customization after application launch.

    // Add the view controller's view to the window and display.
    [self.window addSubview:viewController.view];
    [self.window makeKeyAndVisible];

    return YES;
}

Q3.What is the Model structure of iPhone Application?
A.
@interface RootViewController : UITableViewController {
 NSArray *tableDataSource;

NSString *CurrentTitle;
NSInteger CurrentLevel;
IBOutlet UITableView * newsTable; 
UIActivityIndicatorView * activityIndicator; 
CGSize cellSize; 
NSMutableArray * stories; 
NSMutableDictionary * item;
NSString * currentElement; 
NSMutableString * currentTitle, * currentDate, * currentSummary, * currentLink; 
}

@property (nonatomic, retain) NSArray *tableDataSource;
@property (nonatomic, retain) NSString *CurrentTitle;
@property (nonatomic, readwrite) NSInteger CurrentLevel;



Q4.What is the View structure of iPhone Application?
A.
@interface loancalculatorViewController : UIViewController {
IBOutlet UITextField *tbxLoanAmount;
IBOutlet UITextField *annualInterestRate;
IBOutlet UITextField *noOfYears;
IBOutlet UILabel *monthlyPayment;
IBOutlet UILabel *totalInterest;
IBOutlet UILabel *totalPayment;
}

@property (nonatomic,retain) UITextField *tbxLoanAmount;
@property (nonatomic,retain) UITextField *annualInterestRate;
@property (nonatomic,retain) UITextField *noOfYears;
@property (nonatomic,retain) UILabel *monthlyPayment;
@property (nonatomic,retain) UILabel *totalInterest;
@property (nonatomic,retain) UILabel *totalPayment;


Q5.What is the Controller structure of iPhone Application?
A.

@interface RootViewController : UITableViewController {
mainView* myMainView;
}
- (id)init;
- (void)dealloc;
- (void)loadView;


Q6. What are Delegates in Objective-C?


A. 
A delegate allows one object to send messages to another object when an event happens.
OR
A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words, it's a mechanism to enable specific callbacks from a later-created object.

For example: when we create an object of UITableView like: UITableView *myTable;
then some methods like:

didSelectRowAtIndexPath: 


automatically called. These methods are called delegated.

Q7. What is the need of these Delegates?
A.
 To execute some of must to do actions, we need these delegates.
For example: for a table it is must decided that, 
  • How many row will be there.
  • What will be the content on cell of each row.
  • What will happen after selecting the row.



Q8. How Memory Management is handle in iphone?



Q9. What is MVC ?
A.
MVC (Model View Controller) is a design pattern used in services architectures. MVC separate the software architecture into three distinct elements. The 'Model' is how the underlying data is structured. The 'View' is what is presented to the user or consumer. The 'Controller' is the element that performs the processing. More.....




Q10.  MVC supports loose or tight coupling?
A. 
MVC supports both loose and tight coupling, because there is usually a tight coupling
between the view and the controller because user actions are difficult to interpret without details of the presentation. For example:
   • What object mouse clicked on 
   • What text area user typed into
Actions must be interpreted in terms of presentation
View has the information to map points in view to application objects

Refer the figure in this post.
  
•    View needs to know about model. Controller needs to know about model and view, So view and the controller are tightly coupled.
•    Model doesn’t need to know about either’s design, So Model loosely coupled to view/controller


All The Best :)


Next(Part 2)….