1.跳转到任一UIViewController var sb = UIStoryboard(name: "Main", bundle:nil) var vc = sb.instantiateViewControllerWithIdentifier("ChooseViewController") as
分类:
其他好文 时间:
2016-03-10 12:30:17
阅读次数:
146
string multiply(string num1, string num2) { if (num1 == "0" || num2 == "0") return "0"; int sa = num1.size(); int sb = num2.size(); vector temp(sa + s...
分类:
其他好文 时间:
2016-03-08 23:30:18
阅读次数:
210
iOS中常用的多线程操作有( NSThread, NSopretion CGD ) 为了能更直观的展现多线程操作在SB中做如下的界面布局: 当点击下载的时候从网络上下载图片: - (void)loadImgFromURl{ NSURL *url=[NSURL URLWithString:@"http
分类:
移动开发 时间:
2016-03-05 20:10:48
阅读次数:
218
//UIView+CornerRadius.h @interface UIView (CornerRadius) @property (nonatomic, assign) IBInspectable CGFloat cornerRadius; @end //UIView+CornerRadius.
分类:
其他好文 时间:
2016-03-01 17:14:19
阅读次数:
168
logcat显示不全可以参考以下代码,简单有效 1 if (responseInfo.result.length() > 4000) { 2 Log.v(TAG, "sb.length = " + responseInfo.result.length()); 3 int chunkCount = r
分类:
移动开发 时间:
2016-02-29 16:25:55
阅读次数:
206
题目描述 Description 已知某开放授权人员名叫Serb,由于经常修改各种数据,因此开发人员们都喊他SB.现在他和许多人一起过飞机安检,排成了一长队列,请问SB.是否在队列中。 输入描述 Input Description 第一行:SB.所代表的某个符号 第二行:一排等待飞机安检的人所代表的
分类:
其他好文 时间:
2016-02-28 12:37:17
阅读次数:
155
String urlStr ="https://qyapi.weixin.qq.com/cgi-bin/gettoken?a=a&b=b"; URL url = null; BufferedReader in = null; StringBuffer sb = new StringBuffer();
分类:
编程语言 时间:
2016-02-28 12:28:39
阅读次数:
160
1004: [HNOI2008]Cards 题意:有n张卡片,染成s1张红色,s2张蓝色和s3张绿色;之后有m种置换关系,问本质不同的染色方案有多少种? Input 第一行输入 5 个整数:Sr,Sb,Sg,m,p(m<=60,m+1<p<100)。n=Sr+Sb+Sg。接下来 m 行,每行描述 一
分类:
其他好文 时间:
2016-02-27 15:10:20
阅读次数:
169
1. 利用代码: 2.利用XIB: 3.利用Storyboard: Xcode 7默认该方式创建项目工程,就不必多说了!
分类:
移动开发 时间:
2016-02-23 20:39:55
阅读次数:
238
public void getLogToLocal(Throwable e) { StringBuffer sb = new StringBuffer(); Writer write = new StringWriter(); PrintWriter print = new PrintWriter(
分类:
其他好文 时间:
2016-02-23 20:39:01
阅读次数:
184