This tutorial will explain, how you can change the UITableView data. In this tutorial, I will add, delete and re-order rows in UITableView. I will be using navigation code here.
I am going to write series of UITableView tutorials (Video Tutorials as well). My target is to make the customized UITableView using UITableViewCell which is requested on “Request Tutorial” page. Following are the list of tutorials, which I will be posting on this blog:
[Note: If you want more tutorials on UITableView or UITableViewCell, then add a comment on “Request Tutorial” Page]
Idea of this tutorial:
UITableViewCell tutorial will explain how you can use UITableViewCell in UITableView. Custom UITableViewCell using Interface builder makes table view design very easy. Using UITableViewCell gives you lot of customization over the design of each row. You can easily reduce number of code lines by using UITableViewCell (i.e reduce customization code and easy to manage your table). There are few things which are little hard to do using UITableView but using UITableViewCell they are easily manageable i.e you can manage your cell code in a separate class, you can change the design of cell using nib files more easily then writing codes. So in my point of view, custom UITableViewCell using Interface builder makes your life more easy while developing applications for iPhone.
So in this tutorial, i will write only UITableViewCell and link it with UITableView. I will be using part 2 code, which you can grab from here. Final output of this code will be same as part two but to change the design on table will be really simple. You can watch the video tutorial at the end to skip all the text.
customize UITableView using UITableViewCell
Steps to follow
Follow these steps to achieve the output like above:
Step 1: Open the SimpleTable project in Xcode (you can grab this code from here. [Note: I am using UITableView part 2 code here]). In Xcode, ‘Group and Panel’ right click on classes, select >Add> New File..>. Now select UITableViewCell and name it ‘TableViewCell’, press finished.
Add UITableViewCell Select UITableViewCell from wizard
Name the UITableViewCell class
Step 2: Now in ‘TableViewCell.h’ file add following code before @end and after #import:
Step 6: Now open NextView.xib file from your Xcode project. Press cmd + shift + s to save as this file, and give it a name TableViewCell and ‘Add’ to ‘SimpleTable’ project:
Save As nib file
Name UITableViewCell xib file Save nib file
Step 7: Now in TableViewCell.xib file, select ‘View’ and then select Edit>Delete (or press ‘back space’ button) to remove the View from xib file
Remove View from TableCellView.xib Deleted View from TableCellView
Step 8: Now press cmd + shift + l to open Library. Drag ‘Table View Cell’ to ‘TableViewCell.xib’ file. Select ‘Table View Cell’ and press cmd + 4 and write ‘TableCellView’ in class and press cmd + 1 and write ‘tblCellView’ in Identifier.
Add UITableViewCell to nib file Assign Class to Table Cell View
Add Identifier to Table Cell View
Step 9: Now select ‘Files Owner’ and press cmd + 4 and type ‘SimpleTableViewController’ in class. Also press cmd + 2 and drag tblCell to ‘Table View Cell’ like in the below picture:
Give class name to File’s Owner
Map UITableViewCell to Table View Controller
Step 10: Now drag a label inside UITableViewCell and select ‘TableViewCell’, drag cellText with label.
Map Label
Step 11: Save the interface builder and your code. Run the application and you will see the output like this:
Custom UITableViewCell Output
Looked at bottom pictures to change the color of labels and cell Accessory:
Change Table Cell View Accessory
Change Label Text colour
Label Colour text change
Run the application and you will see the final output.
Introduction:
Some people asked me about creating a splash screen in iPhone. So today I am going to write a simple tutorial on creating splash view for your application. I will write another post on good looking splash page as well. Its really a small thing but have a really good impact on your users.
In this tutorial I will walk to you through creating a simple “Hello World” application using interface builder. There are many ways that a Hello World program could be made on the iPhone, I am going to show you the simplest.
The aim of this project is to make a classified ads website built in joomla. Below I state the keyfeatures of the project. Winning bid will get everything in full detail.
Keyfeatures of the project:
1) Users must be able to post their classified ad for free
2) There should be 3 types of classifieds: text, photo, video
3) All visitors should be able to view all kind of classifieds, but with no contact details of the submitter. Contact details should be revealed after a unique code is inserted into the system.
4) How somebody gets the code? With an sms. You have nothing to make about sms sending. The sms would be sent by a telecommunications company. The user that gets the code in his mobile phone inserts the code into the system and all classifieds’ contact details are revealed for a limited amount of time.
5) Administrator should be able to make different groups of codes with different time limits. Ex. Somebody inserts the code into the system. After this code is inserted for the 1st time it should expire after 24 hours(this can be 2 days, 5 days, or anything). Admin should be able to group those limits.
6) Two types of classifieds. Normal classifieds and classifieds about indebted products. I will explain in full detail to the winning bid.
7) A user can put his classified in featured classifieds by paying a small fee. So the user should be able to pay us online. Payment gateway for bank and paypal.
8) A flash map should be created. Not something difficult for a flash expert.
9) I need extended use of ajax and the website must have a web 2.0 feeling.
10) Everything should be controlled easily through the admin section. The admin section must also provide full reports about the website ex. total classifieds number and users’ statistcs.
Please bid only if you have extended joomla experience. High quality should be delivered in the least possible time limit.
Two things I will not tolerate and cancel the project. 1st) Exceed time limit (so please calculate your time wisely before bidding) and 2nd) Bad communication skills. If ask you something via email I demand an answer back.
If I am pleased of the work done then surely more projects to come. I am in need of a good programmer for longer time cooperation.