10 2017 档案
摘要:import java.util.*; class StringAddress { private String s; public StringAddress(String s) { this.s = s; } public String toString() { return super.toString() ...
阅读全文
摘要:用继承自UINavigationController与UITabbarController 创建类,将前者设置为RootViewController,出现了一个问题,navigetionController的title不显示,在controller里面怎么设置都不显示,原因是这个样子的: title
阅读全文
摘要:1 import java.util.*; 2 class ReversibleArrayList extends ArrayList{ 3 public ReversibleArrayList(Collection c) {super(c);} 4 public Iterable reversed(){ 5 return new Iterable(){...
阅读全文
摘要:任何实现了Iterable接口的类,都可以用forEach语句,并且Java中大部分的Collection都可以用forEach,除了Map 1 import java.util.*; 2 public class AdapterMethodiom implements Iterable 3 { 4 protected String[] words = ("hello world ...
阅读全文
摘要:1 import java.util.*; 2 3 public class AddingGroups { 4 5 public static void main(String[] args) { 6 7 Random rnd = new Random(10); 8 Map m = new HashMap(); 9 ...
阅读全文
摘要:1 import java.util.*; 2 3 public class AddingGroups { 4 5 public static void main(String[] args) { 6 Stack stack = new Stack(); 7 8 /*不能向stack当中push一个数组 9 ...
阅读全文
摘要:迭代器能够将遍历的操作与序列底层的结构分离
阅读全文
摘要:1 import java.util.*; 2 class Snow{} 3 class Powder extends Snow{} 4 class Crusty extends Snow{} 5 class Slush extends Snow{} 6 7 class Light extends Powder {} 8 class Heavy extends Powder {...
阅读全文
摘要:1 import java.util.*; 2 class Snow{} 3 class Powder extends Snow{} 4 class Crusty extends Snow{} 5 class Slush extends Snow{} 6 7 class Light extends Powder {} 8 class Heavy extends Powder {...
阅读全文
摘要:1 import java.util.*; 2 public class matrixReshape { 3 4 5 public static void main(String[] args){ 6 Scanner sc = new Scanner(System.in); 7 ArrayList arrayList = new Arr...
阅读全文
摘要:https://www.youtube.com/watch?v=XCsL89YtqCs. 视频教程 https://golang.org/cmd/go/。 goTool
阅读全文
摘要:ctrl + shift +h快捷键 auto html preview
阅读全文
摘要:在有些项目中,大量使用了全屏的背景图片,这样的图片我们一 定不能使用[UIImage imageNamed:@"imageName"]的方式加载,因为这个方法会把图片直接缓存到内存中,试想一下,如果很多张图片都塞进内存是什么情况? 那就只能使用[UIImage imageWithContentsOf
阅读全文
摘要:开发App的过程中,常常会遇到在App内部加载网页,通常用UIWebView加载。这个自iOS2开始使用的网页加载器一直是开发的心病:加载速度慢,占用内存多,优化困难。如果加载网页多,还可能因为过量占用内存而给系统kill掉。各种优化的方法效果也不那么明显(点击查看常用优化方法)。 iOS8以后,苹
阅读全文
摘要:@property (strong,nonatomic) NSArray *listData; @property (strong,nonatomic) NSArray *a; 必须Strong强引用
阅读全文
摘要:1 //读取plist文件的数据 2 NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"province" ofType:@"plist"]; 3 NSMutableDictionary *data = [[NSMutableDictionary alloc] initWithContent...
阅读全文
摘要:1 // 2 // ViewController.m 3 // 分屏导航 4 // 5 // Created by wky on 15/10/2017. 6 // Copyright © 2017 vector. All rights reserved. 7 // 8 9 #import "ViewController.h" 10 11 @interface Vie...
阅读全文
摘要:先执行viewDidLoad() 1 -(void) viewWillAppear:(BOOL)animated 2 { 3 NSLog(@"视图即将出现"); 4 } 5 -(void) viewDidAppear:(BOOL)animated 6 { 7 NSLog(@"视图已经出现"); 8 } 9 -(void) viewWillDisappear:(BO...
阅读全文
摘要:要传一个参数,可以解决? 传2个,怎么搞啊???
阅读全文
摘要:要传一个参数,可以解决? 传2个,怎么搞啊???
阅读全文
摘要:1 // 2 // ViewController.h 3 // TableView 4 // 5 // Created by wky on 11/10/2017. 6 // Copyright © 2017 vector. All rights reserved. 7 // 8 9 #import 10 11 @interface ViewController :...
阅读全文
摘要:这人写的不错 iOS 的一点理解(一) 代理delegate 做了一年的iOS,想记录自己对知识点的一点理解。 第一篇,想记录一下iOS中delegate(委托,也有人称作代理)的理解吧。 故名思议,delegate就是代理的含义, 一件事情自己不方便做,然后交给其他人去帮助实现, 比如A、B两个类
阅读全文
摘要:简介:UIPickerView是一个选择器控件,它比UIDatePicker更加通用,它可以生成单列的选择器,也可生成多列的选择器,而且开发者完全可以自定义选择项的外观,因此用法非常灵活。UIPickerView直接继承了UIView,没有继承UIControl,因此,它不能像UIControl那样
阅读全文
摘要:1 // 2 // AppDelegate.m 3 // PicWall 4 // 5 // Created by wky on 07/10/2017. 6 // Copyright © 2017 vector. All rights reserved. 7 // 8 9 #import "AppDelegate.h" 10 #import "VC...
阅读全文
摘要:1 // 2 // AppDelegate.m 3 // TabBarApp 4 // 5 // Created by wky on 06/10/2017. 6 // Copyright © 2017 vector. All rights reserved. 7 // 8 9 #import "AppDelegate.h" 10 #import "...
阅读全文

浙公网安备 33010602011771号