Feeds:
Posts
Comments

Archive for April, 2012

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 »

Pinterest

Pinterest

Pinterest is one of the hottest new social networks in the world.

All access occurs via HTTPS. As of now, all the data should be sent and received through JSON (JavaScript Object Notation). API does not support XML inputs or outputs yet.

OAuth2 is used by Pinterest for server side authentication purposes. Authentication process consists of 3 steps, which are as follows:

 

i) User Authentication – To ensure that user properly authenticates to the server and says who they are

ii) App Authorization – This involves the user knowing what kind of data they will be providing the app

iii) App Authentication – This ensures that the user is providing their information to the proper app, not anything or anybody else.

 

Once these steps are performed, a user token is issued by the server to the app to perform tasks on behalf of the user.

Important Links:

http://pinterestdeveloper.com/

http://tijn.bo.lt/pinterest-api

http://www.itweb.co.za/index.php?option=com_content&view=article&id=52696

http://www.datasprings.com/resources/articles-information/pinterest-api-programming

https://github.com/mystcolor/JTPinIt

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 »

Yes it is possible using Paste Board, we can not directly attach image like Email Functionality.

we can use paste board assign image to paste board.

then open native SMS Screen

over there we can press long hold so we can get paste option so we can paste our image over there and then we able to send that image as MMS.

Here is sample code.

UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];

pasteboard.image = Your image  Name;// Put your image name

NSString *sms = [NSString stringWithFormat:@"sms:"];

[[UIApplication sharedApplication]openURL:[NSURL URLWithString:sms]];

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 »

Follow

Get every new post delivered to your Inbox.