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
- (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
//---------------------------------------Maps Code-------------------------------------- | |
#pragma mark- Maps | |
-(void)makeAnnotation | |
{ | |
for (int k=0;k<[annotations count];k++) | |
{ |
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)setUpMiniOnOrientation | |
{ | |
//RECUPERATION DES PROJETS | |
if (projectArray != nil) | |
{ | |
projectArray = nil; | |
[projectArray release]; | |
} | |
if (managedObjectContext == 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
Process: RDRProject [3619] | |
Path: /Users/c36/Library/Application Support/iPhone Simulator/4.3.2/Applications/82F1880B-5FAA-4F77-A944-3AFA6FCF990D/RDRProject.app/RDRProject | |
Identifier: RDRProject | |
Version: ??? (???) | |
Code Type: X86 (Native) | |
Parent Process: launchd [92] | |
Date/Time: 2012-03-06 18:16:44.823 +0530 | |
OS Version: Mac OS X 10.6.7 (10J869) | |
Report Version: 6 |
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)fetchRecords { | |
// Define our table/entity to use | |
NSEntityDescription *entity = [NSEntityDescription entityForName:@"Event" inManagedObjectContext:managedObjectContext]; | |
// Setup the fetch request | |
NSFetchRequest *request = [[NSFetchRequest alloc] init]; | |
[request setEntity:entity]; | |
// Define how we will sort the records |
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.navigationItem.title=@"Home"; | |
segmentToggle = segmentedControl.selectedSegmentIndex; | |
//------------- | |
if (managedObjectContext == 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
//===================== Memory Leak=========================== | |
NSString *str =[[NSString alloc]initwithFormate:@"Hello"]; | |
UILabel *lbl=[[UILabel alloc]init]; | |
lbl.text= str; | |
[str release]; | |
UILabel *lbl2=[[UILabel alloc]init]; |
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]; | |
btn = 50; | |
scroll.contentSize = CGSizeMake(320, 570); | |
app.edit_flag=1; | |
[btn1 setBackgroundImage:[UIImage imageNamed:@"red_border_box.png"] forState:UIControlStateNormal]; | |
UIBarButtonItem *cancel_btn=[[UIBarButtonItem alloc] initWithTitle:@"Cancel" style:UIBarButtonItemStylePlain target:self action:@selector(cancelBtnClicked:)]; | |
self.navigationItem.rightBarButtonItem=cancel_btn; |
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
//logout mehthod========================*******************=============== | |
- (void)logOutButtonPressed { | |
NSLog(@"logout"); | |
fbGraph.accessToken = nil; | |
NSHTTPCookie *cookie; | |
NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage]; | |
for (cookie in [storage cookies]) |