Try the search, it's linked to some great forums
Friday, August 12, 2011
Friday, July 29, 2011
Facebook API Installation
Facebooks instructions for getting hooked up to their git hub;
Github repository =
https://developers.facebook.com/docs/guides/mobile/
Github repository =
git clone git://github.com/facebook/facebook-ios-sdk.git Thursday, July 28, 2011
Popover's & their delegate for iPads
The following code is a simple implementation of a popover using a separate view controller & xib file. First the instantiation & display code;
InfoViewController *popoverView = [[InfoViewController alloc] init];
popoverView.delegate = self;
// Creates the popoverController object
infoPopover = [[UIPopoverController alloc] initWithContentViewController:popoverView];
[infoPopover setDelegate:self];
[infoPopover presentPopoverFromRect:CGRectMake(512, 200, 10, -30) inView:self.view permittedArrowDirections:0 animated:NO];
[infoPopover setPopoverContentSize:CGSizeMake(400, 500)];
and then instructions;
in PopoverViewController
the .xib file
the .h file
InfoViewController *popoverView = [[InfoViewController alloc] init];
popoverView.delegate = self;
// Creates the popoverController object
infoPopover = [[UIPopoverController alloc] initWithContentViewController:popoverView];
[infoPopover setDelegate:self];
[infoPopover presentPopoverFromRect:CGRectMake(512, 200, 10, -30) inView:self.view permittedArrowDirections:0 animated:NO];
[infoPopover setPopoverContentSize:CGSizeMake(400, 500)];
and then instructions;
in PopoverViewController
the .xib file
- in the view change the status bar = None, so that you can resize the screen
- add controls as you like
- add IBOutlet IBActions to match the xib file
- connect them to the xib objects
- add delegate protocol & method definitions at the bottom of the file
- add the delegate property using assign & id
- synthesize & release the popover controls
the .h file
- add the conforms to
- add a UIPopoverController property use assign for the property
- Add an IBAction show button to display the popover
- Add the delegate's methods
Subscribe to:
Posts (Atom)

