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
- (DBRestClient *)restClient | |
{ | |
if (!restClient) | |
{ | |
restClient = | |
[[DBRestClient alloc] initWithSession:[DBSession sharedSession]]; | |
restClient.delegate = self; | |
} | |
return restClient; | |
} |
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
-(void)fadeScreen2 | |
{ | |
CGRect appFrame = [[UIScreen mainScreen] applicationFrame]; | |
UIView *view = [[UIView alloc] initWithFrame:appFrame]; | |
view.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth; | |
self.view = view; | |
[view release]; | |
act1 = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray]; | |
[act1 setCenter:CGPointMake(320.0/2,300.0)]; |
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
- (void)viewDidLoad { | |
[super viewDidLoad]; | |
self.title = @"Literature"; | |
if (searchText.length > 0) { | |
[searchBar setShowsCancelButton:YES]; | |
searchBar.text = searchText; | |
[self searchLiteraturesWithName:searchText]; | |
} | |
[self.navigationController.navigationBar setTintColor:[UIColor primaryBarColor]]; |
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
searchBar.delegate = self; | |
searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0.0, 0.0, 200.0, 44.0)]; | |
searchBar.placeholder = @"Search Files"; | |
searchBar.userInteractionEnabled=YES; | |
//searchBar.tintColor=[UIColor clearColor]; | |
//Mark : For Loop for Searchbar Color change | |
for (UIView *view in self.searchBar.subviews) |
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 "SingletonClass.h" | |
#import "ViewController.h" | |
@implementation SingletonClass | |
@synthesize locationManager; | |
@synthesize startLocation,stopLocation; | |
@synthesize testStr; | |
//static SingletonClass *sharedManager = nil; |
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
-(void)findCurrentLocation | |
{ | |
if(nil==self.locationManager) | |
{ | |
self.locationManager= [[[CLLocationManager alloc]init]autorelease]; | |
} | |
locationManager.delegate=self; |
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
//---------------------------------------ViewController.h--------------------------------------- | |
@protocol LeftViewControllerProtocol <NSObject> | |
-(void)updateTable; | |
@end | |
@interface ViewController : UIViewController <CLLocationManagerDelegate,ViewControllerDelegate> |
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
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
InvProductDetailViewController *idvc = [[InvProductDetailViewController alloc] initWithNibName:@"InvProductDetailViewController" bundle:nil]; | |
[self.navigationController pushViewController:idvc animated:YES]; | |
[idvc release]; //Zombie shows issue here. Commenting this line solved the issue but generated memory leak. | |
} |
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 java.util.ArrayList; | |
import java.util.Scanner; | |
public class Quad { | |
public static void main(String args[]) | |
{ | |
ArrayList resultArray= new ArrayList(); | |
ArrayList elementArray= new ArrayList(); | |
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 <Foundation/Foundation.h> | |
#import<AddressBook/AddressBook.h> | |
@interface Singleton : NSObject | |
{ | |
//int myInt; | |
} | |
@property (nonatomic) ABRecordRef personGlobal; //Global Addressbook Person Object. | |
@property (nonatomic) int myInt; |