有许多使用html5读取本地文件的例子,但是从文件列表中选择,我的问题是我想手动创建文件对象,想想我有一个带链接的文件
file:///G:/Users/txt.txt
Run Code Online (Sandbox Code Playgroud)
我希望浏览器打开它,
我认为它必须归档 f=new File('file:///G:/Users/txt.txt');
我的问题是如何使用文件路径创建/初始化文件对象?
我正在尝试构建rss阅读器,当用户完成阅读artical并按回dealloc时不会调用的问题
我得到了retainCount 6和7次!
我有很多自定义面板
当按下后退按钮时,视图是poped并且没有dealloc被称为?!
.h文件:
@interface ArticalViewController : UIViewController<UIWebViewDelegate,UIScrollViewDelegate,UIActionSheetDelegate,ArticalBottomPanelDelegate,ArticalContentFetcherDelegate> {
UIWebView * description_;
UIActivityIndicatorView * ind_;
ArticalModel * artical_;
NSString * content;
UIButton * faceBookShareBtn_;
UIBarButtonItem * btnSharePanel_;
CustomTopToolBar * topToolbar_;
ArticalBottomPanel* articalBottomPanel_;
MovingSharePanel * movingSharePanel_;
int fontSize;
BOOL favoStatus;
ArticalContentFetcher *datafetcher_;
}
@property (nonatomic,retain) IBOutlet UIWebView * description;
@property (nonatomic,retain ) IBOutlet UIActivityIndicatorView * ind;
@property (nonatomic,retain) ArticalModel * artical;
@property (nonatomic,retain) IBOutlet UIButton * faceBookShareBtn;
@property (nonatomic,retain) IBOutlet CustomTopToolBar * topToolbar;
@property (nonatomic , retain) IBOutlet ArticalBottomPanel …Run Code Online (Sandbox Code Playgroud)