Posts

Showing posts from July, 2013

Customize Table View Cells for UITableView

Image
Customize Table View Cell Does the app look better? We’re going to make it even better by customizing the table cell. So far we utilize the default style of table view cell. The location and size of the thumbnail are fixed. What if you want to make the thumbnail bigger and show the preparation time for each recipe just like the below screen? Custom Table View Cell with Different Style Designing the Cell In this case, you have to create and design your own table cell. Go back to Xcode. In Project Navigator, right click “SimpleTable” folder and select “New File…”. As we’re going to design our own table cell, we have to create a new Interface Builder file for the cell. For this case, we just need to start with an “Empty” user interface. Click “Next” to continue. Select an Empty Interface Builder Document When prompt to choose the device family, select “iPhone” and click “Next” to continue. Save the file as “SimpleTableCell”. Once the file is created, you should fi...

Can background or borders be removed from UISearchBar?

Image
Can borders be removed from UISearchBar? in Xcode [[[ searchBar subviews ] objectAtIndex : 0 ] setHidden : YES ]; for ( id img in searchBar . subviews ) { if ([ img isKindOfClass : NSClassFromString (@ "UISearchBarBackground" )]) { [ img removeFromSuperview ]; } } ------------------------------------------------------------ in (void)viewDidLoad of ViewController.m - (void)viewDidLoad{ [super viewDidLoad]; self.navigationItem.leftBarButtonItem = self.editButtonItem; _searchBar = (UISearchBar *)[_TableCell viewWithTag:777]; [[[_searchBar subviews] objectAtIndex:0] setHidden:YES]; for (id img in _searchBar.subviews) { if([img isKindOfClass:NSClassFromString(@"UISearchBarBackground"(]) { [img removeFromSuperview]; } } } -------------------------------------------------------------- in @interface ViewController of ViewController.h  ...

Create RESTful WCF Service API: Step By Step Guide

Image
Create RESTful WCF Service API: Step By Step Guide Introduction Windows Communication Foundation (WCF) is an SDK for developing and deploying services on Windows. WCF provides a runtime environment for your services, enabling you to expose CLR types as services, and to consume other services as CLR types. In this article, I am going to explain how to implement restful service API using WCF 4.0 . The Created API returns XML and JSON data using WCF attributes. What is REST? Based on the Roy Fielding theory "Representational State Transfer (REST), attempts to codify the architectural style and design constraints that make the Web what it is. REST emphasizes things like separation of concerns and layers, statelessness, and caching, which are common in many distributed architectures because of the benefits they provide. These benefits include interoperability, independent evolution, interception, improved scalability, efficiency, and overall performance." Actually on...

How to open UIImagePopOverController in iPad

How to open UIImagePopOverController in iPad Today I am going to describe to open UIImagePopOverController in iPad. If you are iOS developer then very well know that you can not directly open UIImagePopOverController. For that you need to take help of UIPopOverController Define in the source file .h ? 1 2 3 4 5 6 7 8 9 10 11 #import <UIKit/UIKit.h> @interface ViewController : UIViewController<UIPopoverControllerDelegate, UIImagePickerControllerDelegate> {      UIPopoverController *popoverController;      IBOutlet UIButton *yourBtn;      IBOutlet UIImageView *img; } - (IBAction) showCameraUI; @end Design your interface in Xib in which you need to add one UIImageView and also add one UIButton and give it’s IBAction and IBOutlet according you define previously Now implement the code as follow ? 1 2 3 4 5 6 7 8 9 10 11 12...