Magic Studio

专心做有逼格的APP!

上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 42 下一页

2011年11月22日 #

UIWebView without a .xib Objective-C[转]

摘要: Add a UIWebView programmatically without using a .xib file. This goes in the views controller. Original from http://www.gibsontang.com/?p=176 (Big thanks man!) - (void) initUIWebView { NSLog(@”DetailViewController->initUIWebView {“); UIWebView *aWebView; // init and create the UIWebView aWeb... 阅读全文

posted @ 2011-11-22 15:44 Mr 布鲁斯 阅读(248) 评论(0) 推荐(0)

2011年11月18日 #

imageNamed is evil[转]

摘要: imageNamed is evil So a little while back we wrote about the confusing crashes on the device that we eventually figured out were caused by [UIImage imageNamed:] running out of memory when it tried to cache lots of big images. So we apparently solved the problem by making a thumbnail-sized im... 阅读全文

posted @ 2011-11-18 21:10 Mr 布鲁斯 阅读(215) 评论(0) 推荐(0)

2011年10月21日 #

NSString的一点tips

摘要: When to release a NSString in iPhone up vote 7 down vote favorite 7 share [fb] share [tw] I have the following method -(NSMutableArray *) getPaises { NSMutableArray * paises; paises = [[NSMutableArray all... 阅读全文

posted @ 2011-10-21 00:08 Mr 布鲁斯 阅读(314) 评论(0) 推荐(0)

2011年10月14日 #

obj 格式化输出 [转]

摘要: 在使用诸如NSLog, [NSString stringWithFormat:]之类的函数时,都是基于c/c++风格的字符串格式化工作的.本来c/c++就没怎么用过,到iphone开发开发时掺合上NS系的对象,格式化输出更是一头的乱.看了一下Programming Guide for Cocoa的文档,还是有比较详尽的说明的,整理出来备查.格式定义The format specifiers supported by the NSString formatting methods and CFString formatting functions follow the IEEE printf s 阅读全文

posted @ 2011-10-14 13:08 Mr 布鲁斯 阅读(496) 评论(0) 推荐(0)

2011年9月24日 #

WP7的同学看这里咯。一个老外写的30天教材

摘要: WP7的同学看这里咯。一个老外写的30天教材点击这里到正文 截图: 阅读全文

posted @ 2011-09-24 16:14 Mr 布鲁斯 阅读(786) 评论(0) 推荐(0)

2011年9月16日 #

申请google android map api key

摘要: 网上找到的老外的一篇申请android map api key的文章。 阅读全文

posted @ 2011-09-16 02:20 Mr 布鲁斯 阅读(1079) 评论(0) 推荐(0)

2011年8月11日 #

What's the best SOAP client library for Python, and where is the documentation for it?[转]

摘要: 74down votefavorite54I've never usedSOAPbefore and I'm sort of new to Python. I'm doing this to get myself acquainted with both technologies. I've installedSOAPliband I've tried to read theirClientdocumentation, but I don't understand it too well. Is there anything else I can 阅读全文

posted @ 2011-08-11 16:36 Mr 布鲁斯 阅读(1073) 评论(0) 推荐(0)

2011年8月7日 #

给Eclipse在线安装WTP

摘要: 给Eclipse在线安装WTP好吧,我承认我是eclipse的新手。被这个Web tool搞的小晕了一下。还好搜到个方法可以在线安装,至少不用怎么担心依赖之类的问题。在线安装点这里就到这里了。 阅读全文

posted @ 2011-08-07 00:33 Mr 布鲁斯 阅读(1174) 评论(0) 推荐(0)

2011年8月4日 #

Mac下安装nginx

摘要: Mac下安装nginx Installing GnuPG 1.4.11 on Mac OS X 10.6.6 Snow Leopard Another day, another GPG install. Different machine, and slightly different versions of Mac OS X and GPG. Unlike other times, I found I didn't need to pass the --disable-asm flag to ./configure (see "Installing GnuPG on Mac 阅读全文

posted @ 2011-08-04 23:10 Mr 布鲁斯 阅读(564) 评论(0) 推荐(0)

2011年7月25日 #

Python自省(反射)指南[转]

摘要: Python自省(反射)指南在笔者,也就是我的概念里,自省和反射是一回事,当然其实我并不十分确定一定以及肯定,所以如果这确实是两个不同的概念的话,还请多多指教 :) 转载请注明作者、出处并附上原文链接,多谢!update 2011-3-10: 更正函数的func_globals属性含义。首先通过一个例子来看一下本文中可能用到的对象和相关概念。01#coding: UTF-802importsys# 模块,sys指向这个模块对象03importinspect04deffoo():pass# 函数,foo指向这个函数对象0506classCat(object):# 类,Cat指向这个类对象07de 阅读全文

posted @ 2011-07-25 21:37 Mr 布鲁斯 阅读(250) 评论(0) 推荐(0)

上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 42 下一页

导航