Wednesday 27 February 2013

UIComboBox For iPhone.

I have made custom file by using which you can use UICombo box in ios code.Let the code begins.

UICombo.h 

UICombo.m

Using Code:-

To use these files,you need to create instance of UICombo Class and pass items and textColor as parameter as given below:

NSArray *itemArray=[[NSArray alloc] initWithObjects:@"BMW",@"Ferrari",@"Swift Desire",nil];

UICombo  *combo=[[UICombo alloc] initWithFrame:CGRectMake(10, 30, 200, 30) andItems:itemArray andColor:CBBrown];

and At Last add it as subview to your view on which you want to display it.

[self.view addSubview:combo];

These combo includes methods to addItem , InsertItemAtIndex,removeItem,removeItemAtIndex,
refresh combo etc.

Note:- Include QuartzCore framework.


                                               
You can have a sample code IOSCombo

Tuesday 26 February 2013

Stock Ticker

Stock Ticker is simply a file that will allow to pass views and number of views to get display on your tickerView.

Ticker you have always see on pull down shutter in your iphone.
Here I have passed stock Views and Currency views.
You can pass your views to display.This is a continuous object display.No space will come then ticker ends.It will continue with first object of the ticker Views array.

 

Using:- To use it,import StockTicker.h file in your code window.Made an array of UIViews or UILabels whatever you want to display as objects on your ticker.

 

  Make TickerView instance as

  Set its properties as

  Implement its delegate method as:


Stock Tikcer.h 




 Stock Ticker.m  




You can have a sample code StockTicker