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
- (IBAction)loginButtonPressed:(id)sender { | |
NSString *client_id = @"142759389130183"; | |
//alloc and initalize our FbGraph instance | |
self.fbGraph = [[FbGraph alloc] initWithFbClientID:client_id]; | |
//begin the authentication process..... | |
[fbGraph authenticateUserWithCallbackObject:self andSelector:@selector(fbGraphCallback:) | |
andExtendedPermissions:@"read_stream,user_photos,user_videos,publish_stream,offline_access,user_checkins,friends_checkins"]; |
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]) |
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
//===================== 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]; | |
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
- (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
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)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
//---------------------------------------Maps Code-------------------------------------- | |
#pragma mark- Maps | |
-(void)makeAnnotation | |
{ | |
for (int k=0;k<[annotations count];k++) | |
{ |
OlderNewer