Skip to content

Instantly share code, notes, and snippets.

@zhaoyswd
zhaoyswd / UIWebView+Screenshot.m
Last active August 18, 2016 08:42
UIWebView+Screenshot
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://stackoverflow.com/questions/10692221/screenshot-of-an-uiwebview-that-is-not-currently-on-screen"]]];
NSLog(@"webview = %@",self.webView);
}
- (void)didReceiveMemoryWarning
{
//
// UIView+ALQuickFrame.h
// ALQuickFrame
//
// Created by Andrea Mario Lufino on 02/07/13.
// Copyright (c) 2013 Andrea Mario Lufino. All rights reserved.
//
// This category is also available as source code
//
// UIColor+iOS7Colors.m
// iOS7Colors
//
// Created by claaslange on 23.08.13.
//
//
#import "UIColor+iOS7Colors.h"
@zhaoyswd
zhaoyswd / PuzzleInterfaceController.h
Last active August 29, 2015 14:16
Apple Watch拼图游戏
#import <WatchKit/WatchKit.h>
#import <Foundation/Foundation.h>
@interface PuzzleInterfaceController : WKInterfaceController
@property (nonatomic, weak) IBOutlet WKInterfaceButton *button1;
@property (nonatomic, weak) IBOutlet WKInterfaceButton *button2;
@property (nonatomic, weak) IBOutlet WKInterfaceButton *button3;
@property (nonatomic, weak) IBOutlet WKInterfaceButton *button4;
@property (nonatomic, weak) IBOutlet WKInterfaceButton *button5;
@property (nonatomic, weak) IBOutlet WKInterfaceButton *button6;