This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Custom Cell.h | |
| @interface CustomCell : UITableViewCell { | |
| UITextField *textField; | |
| UILabel *label; | |
| UIButton *btn; | |
| UISlider *objSlider; | |
| } | |
| @property (nonatomic, retain) IBOutlet UITextField *textField; | |
| @property (nonatomic, retain) IBOutlet UILabel *label; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma mark - | |
| #pragma mark Webservice Methods | |
| -(void)CallWebservice { | |
| appdelegate=(WeirdoAppDelegate *)[[UIApplication sharedApplication]delegate]; | |
| if(isPhotoDetail) { | |
| [AlertView ShowAlert]; | |
| NSString *soapMsg = [NSString stringWithFormat:@"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" | |
| "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n" | |
| "<soap:Body>\n" | |
| "<GetPhotoDetailForiPhone xmlns=\"http://www.weirdo.com/\">\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Location.h | |
| // CoolBook | |
| // | |
| // Created by iphone on 27/08/11. | |
| // Copyright 2011 __MyCompanyName__. All rights reserved. | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma mark Plist path Create | |
| -(void)CreatePlistPath | |
| { | |
| NSError *error; | |
| NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); | |
| NSString *documentsDirectory = [paths objectAtIndex:0]; | |
| path = [[documentsDirectory stringByAppendingPathComponent:@"data.plist"] retain]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <sqlite3.h> | |
| Framework libsqlite3.0dylib | |
| #praga mark establish the path of database | |
| - (NSString *) getDBPath { | |
| NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory , NSUserDomainMask, YES); | |
| NSString *documentsDir = [paths objectAtIndex:0]; | |
| return [documentsDir stringByAppendingPathComponent:@"Expense.sqlite"]; | |
| } | |
| - (void) copyDatabaseIfNeeded { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| +(UIImageView *)ImageOfView:(UIView *)viewImage | |
| { | |
| UIImageView *returnView = [[UIImageView alloc] initWithFrame:[viewImage frame]]; | |
| [returnView setBackgroundColor:[UIColor clearColor]]; | |
| UIGraphicsBeginImageContext(viewImage.bounds.size); | |
| [viewImage.layer renderInContext:UIGraphicsGetCurrentContext()]; | |
| UIImage *Image = UIGraphicsGetImageFromCurrentImageContext(); | |
| UIGraphicsEndImageContext(); |