Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Objective-c Interface and Implementation

Rolin
Rolin 


Class and Interface: (A) What are the differences between a Class and an Interface in Objective-C. (B) (i)Create a project AnimalTest under myobjc folder. Create an interface Animalize, and declare a method myLanguage() that takes no argument but returns a NSString type. Declare one more method of your choice. (ii) Create three different classes Dog, Cat and Lion and let those implement the Animailize interface. This means each of these classes need to have the methods declared in the Animalize interface. (iii) Create a main method instantiate the three other classes created and call the methods for each. Hint: The Animalize interface would have method declaration like, NSString myLanguage(); A Cat class would implement Animalize by first having a line in class definition @interface Cat : Animalize and then having a method NSString myLanguage() { NSLog(@“Meow”); return @“Meow”; } (C) Add additional method corresponding to your other method in Animalize interface (D) Ensure that the program compiles and executes without any errors. (E) Zip and upload all AnimalTest files in the AnimalTest project as an attachment for grade. Your program must compile and run on the Mac 64 bit simulator Attachments
Tags
Clarifications

Answers

Interface and Implementation

mariobeka
mariobeka 



Below you will find a .zip file containing all the files of the project.
In the main.m file you will find also the explanation of point A).
Attachments
AnimalTest.zip (24 K) Download





















Preview
initWithName:(NSString *)myName; - (NSString *)myBreed; -

Preview
Mac

Preview
// // Cat.h //

Preview
OS

Preview
Dog.h // AnimalTest // // #import

Preview
OS

Preview
// // Lion.h //

Preview
X

Screenshots
Purchase Answer

Outlet and Action - Solution

mariobeka
mariobeka 



Implemented everything what was asked. Attachments
OutletAction.zip (40 K) Download


























Preview
Created by Marindo Beka on 5/26/14. // Copyright

Preview
X

Preview
___FULLUSERNAME___. All rights reserved. // #import <UIKit/UIKit.h> @interface OutletActionViewController : UIViewController // 1. { // declare the outlet for the text field

Preview
OS

Screenshots
Purchase Answer

Keyboard &amp; Screen Orientation - Solution

mariobeka
mariobeka 



Here you will find the solution of the latest discussion Attachments
Keyboard.zip (68 K) Download






















































Preview
set the positioning and size of a // view. Besides using the frame property, you can also use the center property, which sets the center of // the view, also with respect to its superview. You usually use the center property when you are performing // some animation and just want to change

Preview
Mac

Preview
UIScrollView *scrollView; UITextField *currentTextField; BOOL keyboardIsShown; } @property (nonatomic, retain)

Preview
X

Screenshots
Purchase Answer

NSUserDefaults - Solution

mariobeka
mariobeka 



Attached you will find the solution for the latest assignment. The answers to the questions are given in the ApplicationSettingsViewController.m file. Attachments
Assignment.zip (961 K) Download

















































































































































































































Preview

Preview
<UIKit/UIKit.h> @class ApplicationSettingsViewController; @interface ApplicationSettingsAppDelegate : NSObject <UIApplicationDelegate> {

Preview
OS

Preview
UIPickerView *favoriteColor; } @property (nonatomic, retain) UITextField *loginName; @property (nonatomic, retain) UITextField *password; @property (nonatomic, retain) UIPickerView *favoriteColor; -(IBAction)

Preview
Mac

Screenshots
Screenshot
Purchase Answer

Last Assignment - Solution

mariobeka
mariobeka 



Used all the technology for creating a new iOS7 project! Attachments
MixAssignment.zip (36 K) Download




























Preview
by yourname on 6/28/14. // Copyright (c) 2014

Preview
OS

Preview
ViewController : UIViewController <UIImagePickerControllerDelegate, UINavigationControllerDelegate> { IBOutlet UIImageView *contactImageView; IBOutlet UITextField *firstNameTextField; IBOutlet UITextField *lastNameTextField; IBOutlet UITextField

Preview
X

Screenshots
Purchase Answer