我在http://code.google.com/p/luke/downloads/list上下载了"Lukeall-3.5.0" 这是一个JAR文件,但我不知道它是如何工作的?有人能告诉我运行卢克的详细步骤吗?谢谢!
使用时连接到"www.google.com"时出错NSConnection.
我找不到原因.任何帮助将不胜感激.
NSString *urkString = @"www.google.com";
NSURL *url = [NSURL URLWithString:urkString];
NSURLRequest *request = [NSURLRequest requestWithURL:url
cachePolicy:NSURLRequestReturnCacheDataElseLoad timeoutInterval:60];
_connection = [[NSURLConnection alloc]initWithRequest:request delegate:self];
if(_connection)
{
_receivedData = [[NSMutableData alloc] init];
}
else
{
UIAlertView *alertView = [[UIAlertView alloc]initWithTitle:@"Error" message:@"Cannot connect to the Web site." delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:nil, nil];
[alertView show];
[alertView release];
}
Run Code Online (Sandbox Code Playgroud)
但它称之为这种方法.错误是:
Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo=0x4c9feb0 {NSErrorFailingURLStringKey=www.google.com, NSErrorFailingURLKey=www.google.com, NSLocalizedDescription=unsupported URL, NSUnderlyingError=0x4c9fdf0 "unsupported URL"}
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
{
_endSystemDate = [self getSystemDate];
_receivedData …Run Code Online (Sandbox Code Playgroud) 我使用fullcalendar作为演示.我该如何实现打印功能?我在FullCalendar包中找到了一个文件'fullcalendar.print.css',它用于什么?
如果有一个"打印"按钮,点击按钮后我该怎么办?任何帮助都会感激不尽!