• Skip to main content
  • Skip to primary sidebar

Ravi Shankar

Tweaking Apps

  • Swift
  • Tech Tips

iPad

iPad App that prints Welcome Message

February 2, 2012 By Ravi Shankar Leave a Comment

Here is an example of writing an iPad app that prints a Welcome message.

Launch Xcode, click File -> New -> New Project.

New Project

Now select the template for the project as Single View Application.

Project Template

Provide the details for your project, like Product Name, Company Name then choose the device for which you are writing the App. Also mark the check box with label as Use Automatic Reference Counting and click the Next button.

Options for New IPad Project

And finally click the Create button to complete the project creation. Now Open the ViewController.xib file and using the Interface Builder designed add two label controls , TextField and Button as shown below.

UI Interface Builder

Label 1 is used for displaying the caption “Enter your Name”, TextField is used for accepting user input, Display button is used for printing the Welcome message in the second label.

Now edit ViewController.h file and add two IBOutlet elements for UITextField and UILabel and IBAction element for button as shown below.

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController

{

IBOutlet UITextField *txtName;

IBOutlet UILabel *lblMessage;

}

-(IBAction) btnDisplay;

@end

Then edit ViewController.m file and implement the IBAction function as shown below

– (IBAction)btnDisplay {

lblMessage.text = [@”Welcome “ stringByAppendingString: [txtName text]];

}

This function creates local string by adding “Welcome ” and suffixing it with the name entered in the Textfield.
After completing the coding part, it is time to connect the UI Interface elements with the Object References in code. Select ViewController.xib in the Project Navigator section then click the File’s Owner under Place Holder section. Drag and drop the respective object references to the UI element and connect map the btnDisplay with the Button Touch Down event. The completing mapping of UI Interface elements with Object References is shown below.
UI Elements and Object Reference Mapping

Now the Run the App in iPad simulator by clicking the Run option on the menu bar or by pressing Control + R on the Keyboard.
iPad Simulator
Now entering the name and clicking the Display button will print the Welcome message as shown below.
Welcome App in iPad Simulator

Filed Under: Apple, Develop, ios, iPad Tagged With: App, Apple, iPad, Welcome

How to archive Email messages in iPad 2

July 6, 2011 By Ravi Shankar Leave a Comment

Email accounts configured in iPad 2 allows user to archive the email messages. you can turn on the archive feature using iPad Mail settings. The archive email message option will be available when you touch and swipe on the email message or if you tap the trash icon.

When you swipe on the email message

image

When you tap the trash icon.

image

The above screenshots shows that archive message feature is disabled for the configured email account. To enable archiving for the email account, from iPad home screen tap the settings icon. In the Settings screen, navigate to Mail, Contacts, Calendars settings and then select email account to turn on archiving of email messages.

image

In the select mail account, navigate to Archive Messages section.

image

Tap and swipe Archive Messages to turn on the feature as shown below.

image

Now when you swipe on any email message the Archive option will be shown as shown below.

image

Filed Under: iPad Tagged With: Archive Email, Delete Message, Disable, email, email account, Email Messages, Enable, iPad 2

How to clear browsing history in iPad 2 safari

April 28, 2011 By Ravi Shankar 5 Comments

iPad 2 provides a good browsing experience to the user through the pre-installed Safari browser. It also allows users to clear the browsing history, cache and cookies. This can be done using the Safari settings option in the iPad.

To clear the browsing history in iPad

  • Tap settings icon on your iPad home screen.
  • In the settings screen, navigate to General settings and then to Tao Safari menu option.

image

  • In the Safari settings, navigate down to see the list of menu options available for clearing the browsing history, cookies and cache.

image

Read: How to enable iPad to speak selected text

When you tap the clear history or any of these menu options you will be prompted with the following message depending upon the selected option.

image

image

image

Tap the Clear button to continue with the operation.

Filed Under: iPad Tagged With: Browsing History, Clear Cache, Clear Cookies, Clear History, iPad 2

How to turn off the Safari pop up blocker in iPad 2

April 24, 2011 By Ravi Shankar Leave a Comment

iPad 2 comes with pre-installed Safari web browser which provides pleasant surfing experience. In case you are accessing websites with pop ups then you can use the iPad settings for disabling the popup blocker.

1. Tap the settings icon in the Home screen

2. Navigate to the Safari menu and then to the Block Pop-ups option

image

3. To Turn off Popup blocker in iPad 2 tap the grey area next to ON option value Block Pop-ups.

image

Read: Add signature for every mail account on iPad

Filed Under: iPad Tagged With: Disable, iPad 2, Pop up blocker, Safari, Turn Off

How to install web certificates in iPad 2

April 10, 2011 By Ravi Shankar Leave a Comment

If you want to access your corporate Outlook Email Account in iPad 2 then you can access this using Outlook Web Access using Safari browser. Most of the corporate email accounts can be accessed only if you install the company certificate. For installing the Web Certificate in iPad 2

  • Mail the web certificate to your personal email account by backing up from your PC as a PKCS12 file.
  • Access the email and download the attached certificate to your iPad
  • You will be prompted with the following dialog. 

image

  • Touch the Install button to proceed with the installation
  • Some certificate might be password protected and enter the password if prompted.

image

  • The following confirmation message will be displayed once the certificate installed. Click Done to close this window.

image

Filed Under: iPad Tagged With: Install, iPad 2, web certificate

How to disable preview for mails configured in iPad

March 31, 2011 By Ravi Shankar Leave a Comment

Mail Accounts configured in iPad 2 provide preview of the email message. You can change the number of lines displayed in email preview using the iPad Settings option.

Select Settings menu from the touch screen and navigate to Mail, Contacts, Calendars option.

image

On the right hand side under the Mail section , the number of lines displayed for the Preview is displayed. When you select Preview option the following will be displayed

image

Now select None to disable the preview for the for the mail accounts configured in iPad.

image

Filed Under: iPad Tagged With: Disable, iPad, Mail, Preview

  1. Pages:
  2. «
  3. 1
  4. 2
  5. 3
« Previous Page

Primary Sidebar

TwitterLinkedin

Recent Posts

  • How to set preferred Wifi network on Mac
  • Attribute Unavailable: Estimated section warning before iOS 11.0
  • How to recover Firefox password from Time Machine backup
  • Show hidden files and folders on Mac
  • How to request a refund for apps in App Store

Pages

  • About
  • Privacy Policy
  • Terms and Conditions

Copyright 2022 © rshankar.com

Terms and Conditions - Privacy Policy