Feeds:
Posts
Comments

Posts Tagged ‘iPhone’

About

Localization is the process of translating and adapting both the content (text and style) and the presentation (graphical and technical components) of an EXISTING product according to the language and cultural characteristics of the target audience or region for which it is intended.

Localization and Internationalization are complimentary activities, with one we can display cultural information like units, dates in the user’s preferred locale and the other, let’s us display text in the user’s preferred language.

The first step is to find out what languages your application is going to support and gather all the text (in different languages), images, videos, sounds and put them in a resource file or in a language directory. To translate text into different languages you can a tool that Google provides here http://translate.google.com/#en|es|

Preparing for Internationalization

In our sample app, we are going to support three languages English, Hindi and Gujarati. Create a new project in Xcode, does not matter what template you select.

After you have created your project, open the project location in Finder and create three directories called en.lproj,gu.lproj and hi.lproj. These three directories become the language project for your application. All the English language resources will stored in the folder en.lproj, the Gujarati language resources will be stored in gu.lproj, and the Hindi language resources will be stored in hi.lproj folder. The resource files that contain the localizable string are called “strings” file and their default name is “Localizable.strings”. So, we will create two new strings file in Xcode, select Resources and click on File -> New File -> Other (under Mac OS X) -> Strings file and click on Next, name your file “Localizable.strings” and save it in en.lproj directory. Repeat the same process by saving it in gu.lproj directory and hi.lproj directory. This is how the files look like in Xcode, since Xcode is smart enough to figure out that the file is localized for three different languages.

Read Full Post »

Here i attach Code file.

1) TableCell.h

Code Link:- TableCell.h Sample Code

2) TableCell.m

Code Link:- TableCell.m Sample Code

In many Place in your iOS Development you use Custom Cell, Custom Table Cell and delegate method of TableView
here i make one sample for creating Custom cell with TextField, Lable, Button and also right Delegate method which we call from out Parent Class.

So i think this code is useful make Custom cell and handle all delegate method of your TableView.

Read Full Post »

addressbookicon

Here i attach Code file.

Code Link:- Retrive field value from the address book and set in Text Field Sample Code

In This code we have use delegate method for Address book Picker.

when click button or do ant event at that time address book open and we select one particular record which value we want to take in our application so dismiss method call and

- (BOOL)peoplePickerNavigationController:

in this method we put code for set text field value.

i think this is useful for you in your iOS Application Development.

Read Full Post »

addressbook

Here i attach Code file.

Code Link:- Retrive All field value from the address book Sample Code

This code is useful for retrieve Address Book Record in your iPhone/iPad Application.

For that you have to add AddressBookUI.Framework and AddressBook.Framework in your Application.

by This code we  get all Record form Address Book form our iPhone/iPad Application.

Read Full Post »

I have prepared a reusable component for sqlite, the same can be used as it is by making SVN-LINK to your into your project.

Common Database class includes the basic functionality of Accessing SQLite database, It contain different function that perform different operation on SQLite database.Main functions available in this class are Insert, delete, update record in the database, get total number of record in the table, check for duplication of record in the table and get record list from the table.

Whats New:
–> With resolving memory leaks

When you execute select query from your class. At that time you need to use retain for your resulted Array

For Example:
DataArr = [[ [Database shareDatabase] SelectAllFromTable:@”Select No,Name,Mobile from TestTbl”] retain ];

–> Resolve the crash issue for read Special character percentage(%) from Database

–> Include new function for getting sum of any column records.

You can use this class in your application just by passing your Query as an argument of function. Main functions included in this class are listed below.

- (void)Insert:(NSString )query
- (void)Delete:(NSString *)query
- (void)Update:(NSString *)query
- (BOOL)CheckForRecord:(NSString *)query
- (int)getCount:(NSString *)query
- (int)GetSum:(NSString)query
- (NSMutableArray *)SelectAllFromTable:(NSString *)query

First time when you launch application at that time this method is useful for copy database from application bundle to your Application Document Directory.

-(BOOL) createEditableCopyOfDatabaseIfNeeded

For Getting Database Path use below method

- (NSString *) GetDatabasePath:(NSString *)dbName

For Programming and understanding flow of coding you can go through:

Class Description:

1) Database.h


Code Link:- Database.h Sample Code

This class includes declaration of all objects and methods used in application.

2) Database.m

Code Link:- Database.m Sample Code

This class includes definition of all methods and main logic for Database Operation.

Read Full Post »

In iOS Application Development we use custom Table Cell

At time we need to use dequeueReusableCellWithIdentifier for create Cell.

So here i make on class in that i define dequeOrCreateInTable one class method so you can directly call this way in your UITableview delegate cellForRowAtIndexPath method.

TableCell *cell =[TableCell dequeOrCreateInTable:tableView];

you also need to #import “UITableViewCell+NIB.h”

here i attach code for this both file you can create your file and put this code in that file and use.

1) UITableViewCell+Nib.h

Code Link:- UITableViewCell+Nib.h Sample Code

2) UITableViewCell+Nib.m

Code Link:- UITableViewCell+Nib.m Sample Code

Read Full Post »

Follow

Get every new post delivered to your Inbox.