【发布时间】:2013-03-01 09:42:25
【问题描述】:
我在一个新的 Cocoa Touch 库中工作,我需要以编程方式显示 UIWebView,因为我要在外部网络中请求用户和密码(如 oAuth),但我不知道如何在内部执行此操作一个 Cocoa Touch 库。
示例代码:
Client.h
#import <Foundation/Foundation.h>
@interface Client : NSObject
@property NSString *_aProperty;
- (void)showUIWebView:(NSURL*)urlToOpen;
@end
Client.m
#import "Client.h"
@implementation Client
@synthesize _identity;
- (void)showUIWebView:(NSURL*)urlToOpen
{
// I need to write code here to show the UIWebView :)
}
@end
【问题讨论】:
标签: ios objective-c cocoa-touch oauth uiwebview