5e7b6ed60e
[FIXED] Font of navbar. [FIXED] A few compile fixes. [IMPROVED] Made properties nonatomic. [ADDED] Support for facebook, twitter and google+ sharing.
51 lines
1.9 KiB
Objective-C
51 lines
1.9 KiB
Objective-C
//
|
|
// GooglePlusSampleShareViewController.h
|
|
//
|
|
// Copyright 2012 Google Inc.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
//
|
|
|
|
#import <MessageUI/MFMailComposeViewController.h>
|
|
#import <MessageUI/MessageUI.h>
|
|
#import <UIKit/UIKit.h>
|
|
#import "GooglePlusShare.h"
|
|
|
|
// A view controller for the Google+ share dialog which contains a text field
|
|
// to prefill the user comment, and a text field for an optional URL to share.
|
|
// A Google+ share button is provided to launch the share dialog.
|
|
@interface GooglePlusSampleShareViewController : UIViewController<
|
|
GooglePlusShareDelegate,
|
|
UITextFieldDelegate,
|
|
UIActionSheetDelegate,
|
|
MFMailComposeViewControllerDelegate> {
|
|
// The Google+ share object to manage the share dialog.
|
|
GooglePlusShare *share_;
|
|
}
|
|
|
|
// The text to prefill the user comment in the share dialog.
|
|
@property (retain, nonatomic) IBOutlet UITextField *sharePrefillText;
|
|
// The URL resource to share in the share dialog.
|
|
@property (retain, nonatomic) IBOutlet UITextField *shareURL;
|
|
// A label to display the result of the share action.
|
|
@property (retain, nonatomic) IBOutlet UILabel *shareStatus;
|
|
// A toolbar to share via Google+ or email.
|
|
@property (retain, nonatomic) IBOutlet UIToolbar *shareToolbar;
|
|
|
|
// Called when the share button is pressed.
|
|
- (IBAction)shareButton:(id)sender;
|
|
// Called when the toolbar share button is pressed.
|
|
- (IBAction)shareToolbar:(id)sender;
|
|
|
|
@end
|