自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Tomson Xu

@CityU

  • 博客(41)
  • 资源 (1)
  • 收藏
  • 关注

原创 iOS: flipboard right panel effect

具体见http://stackoverflow.com/questions/10809575/flipboard-ipad-app-right-menu-panel-slide-effect现在用的solution就是添加一个sub view for panel到main view,而该sub view作为一个view container,来包含要在该panel显示的view,然后

2012-05-31 11:22:33 1196

原创 iOS: popover

popover 基本原理  http://blog.csdn.net/chun799/article/details/6988359open source popover "WEPopover" 也是通过这个原理做的基本使用方法:http://www.raywenderlich.com/1056/ipad-for-iphone-developers-101-uipopovercon

2012-05-30 01:20:49 3253

原创 iOS: UIWebview loadhtmlstring & Local css/js/image resources

UIWebView 既可以load by url,还可以load html string。即你可以自己generate html string来用web view显示。load html string 典型的应用是:url所对应的web page内容太多,如果只需要部分的html content,那么可以通过http request获取url的html content,然后只选取需要的部分,然后通

2012-05-29 18:48:31 12802

转载 iOS: viewWillAppear和viewDidAppear什么时候被调用

http://blog.csdn.net/workhardupc100/article/details/6954774http://esyscn.com/forum.php?mod=viewthread&tid=55927http://blog.csdn.net/kmyhy/article/details/7024507

2012-05-25 12:57:20 4024

转载 iOS: best tutorial of splitview + popover + custom input view

http://www.raywenderlich.com/1040/ipad-for-iphone-developers-101-uisplitview-tutorialhttp://www.raywenderlich.com/1056/ipad-for-iphone-developers-101-uipopovercontroller-tutorialhttp:/

2012-05-25 10:14:59 965

转载 iOS: 分步演示如何将iPhone应用移植至iPad平台

http://www.game798.com/youxijiaocheng/youxichengxujiaocheng/042526312012.html

2012-05-25 09:37:25 1194

原创 iOS: 手动创建splitview app

1. 首先create a single view project。然后删除ViewController .m, .h, .xib files。2. 创建2个class with xib (parent class 均为UIViewController)     DetailViewController .m, .h, .xib     MasterViewControll

2012-05-24 22:06:45 2867 5

原创 iOS: Present modal view with smaller size in iPad

在ipad里,想popup一个login modal window,该window要小过ipad size。怎么做?by default,present a modal view是以full screen来popup。其实有几个presentation style:(ref link)* UIModalPresentationFullScreen   default style

2012-05-24 18:33:47 2901

转载 iOS: cool menu effect

TileMenuhttps://github.com/mattgemmell/MGTileMenuhttp://www.youtube.com/watch?v=7YcrFVUK5lI&feature=youtu.beAwesomeMenuhttps://github.com/levey/AwesomeMenuhttp://www.youtube.com/watch?NR

2012-05-24 17:39:19 951

转载 iOS: pull refresh table view - EGOTableViewPullRefresh

http://wangjun.easymorse.com/?p=1193http://blog.csdn.net/w59879213/article/details/7165236注意事项:* 使用EGOTableViewPullRefresh需要将QuartzCore.framework lib加入到你的project里* EGOTableViewPullRefres

2012-05-24 09:31:56 1358

转载 iOS: subview fade in and out

http://stackoverflow.com/questions/2846005/manually-fade-in-a-newly-added-subviewhttp://www.developerfeed.com/ios/tutorial/ios-fade-and-fade-out-view-effectshttp://www.cnblogs.com/v2m_/archive/2

2012-05-24 09:23:02 892

转载 iOS: XCode工程内多Targets

http://www.cocoachina.com/macdev/cocoa/2010/0120/347.htmlhttp://blog.csdn.net/arthurchenjs/article/details/6448181http://my0613.blogspot.com/2009/10/targetproduct.htmlhttp://blog.csdn.net/

2012-05-24 00:57:31 1581

原创 iOS: 创建universal app

universal app supports both ipad and iphone。要了解universal如何支持both ipad and iphone,最直接的方法就是创建一个universal project。universal project的基本特点:1. target > summary > devices is universal2. xib for ipa

2012-05-23 23:57:44 3865

转载 iOS: 2 Xib's with the same File's Owner for 1 IBOutlet object?

http://stackoverflow.com/questions/8978654/2-xibs-with-the-same-files-owner-for-1-iboutlet-object若2个xib的file owner都指向同一个view controller,那么在2个xib不会同时被load的情况下,分别在不同xib上的控件可以指向view controller里的同一个

2012-05-23 23:22:13 880

转载 iOS: UIKeyboard

iOS keyboard的类型 :http://shareourideas.com/2011/09/23/iphone-keyboard-type-uikeyboardtype/http://blog.csdn.net/sanpintian/article/details/7377806如果你想keyboard只能输入英文、数字和字符,那么选择UIKeyboardTypeASC

2012-05-22 17:51:06 1902

原创 iOS: Support Rotation

支持旋转很简单,只需要在支持旋转的view controller里重写shouldAutorotateToInterfaceOrientation即可注意:在你的project的target里有一个"Supported Device Orientations" option,该option只是setting the UISupportedInterfaceOrientations key in

2012-05-22 14:09:20 1523

原创 iOS: 设置ui background image

set uiview image background: (下面代码是pattern file,即重复image来    self.view.backgroundColor = [UIColorcolorWithPatternImage:[UIImageimageNamed:@"title.png"]];set uitableviewcell image background:

2012-05-17 17:19:57 6362

转载 iOS: 如果给method 参数一个default value

没有办法,只能多态http://stackoverflow.com/questions/9575107/how-to-define-a-default-argument-value-to-a-method-in-ios

2012-05-17 11:45:30 672

转载 iOS: Objective-C可变参数函数定义

http://mobile.51cto.com/iphone-280106.htm

2012-05-17 11:44:15 1942

转载 iOS: Singleton模式

Tutorial: http://iphone.galloway.me.uk/iphone-sdktutorials/singleton-classes/singleton for ARC http://stackoverflow.com/questions/7568935/how-do-i-implement-an-objective-c-singleton-that-is-comp

2012-05-16 10:52:12 608

原创 iOS: Data Persistence

有以下几种Data Persistence的方式:1. 自定义一个plist file来存储。如果你只是存储一些简单的array, dictionary等,则使用这种方式。 plist file是存在/Document2. 使用NSUserDefaults来存储。 顾名思义,NSUserDefaults通常是用来存储user settings and preferences. data

2012-05-15 17:38:37 1224

转载 iOS: 去除gloss effect

http://www.migantech.com/blog/codes/2011/12/02/ios5-icon-%E5%8E%BB%E6%8E%89gloss-effect/

2012-05-14 12:10:31 567

原创 iOS: About split view

以下是官方对split view的描述 (ref link)A split view controller must always be the root of any interface you create. In other words, you must always install the view from a UISplitViewController object as

2012-05-14 01:02:37 1466

转载 iOS: CALayer

中文:http://www.hksilicon.com/kb/articles/17534/CALayer英文http://www.raywenderlich.com/2502/introduction-to-calayers-tutorial

2012-05-13 21:54:18 623

原创 iOS: popover window effect

需求是: by default是全屏显示web view,然后在点了某个按钮后,list view就会作为left panel出现(show with animation from left),当点击非list view area就会隐藏该list view。没具体研究,先写下可能的方案方法1: 使用popover component,不过它只能用在ipad里,有人实现了iphone ve

2012-05-13 18:58:40 1038

原创 iOS: 如何dismissModalViewController AND pass data back

通过delegate来实现,基本原理是:1. 在modal view controller的 .h里定义一个protocol, 然后声明一个该protocol的var。2. 在调用dismissModalViewController method之前,调用protocol var的方法来达到pass data的目的。3. parent view conroller则实现该protoco

2012-05-12 21:00:57 1362

转载 iOS: About app icon and splash image

splash image的命名:http://developer.apple.com/library/ios/#qa/qa1588/_index.htmlhttp://developer.apple.com/library/ios/#DOCUMENTATION/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources

2012-05-12 17:34:36 1256

原创 iOS: 设置背景颜色为渐变

最简单的方法是用一个带渐变颜色的png图作为背景。当然也可以使用代码来实现,但麻烦。ref links:http://www.azumi.cc/thread-511935-1-1.htmlhttp://blog.csdn.net/diqun1314/article/details/6852264

2012-05-12 15:37:44 8385

转载 iOS: 最简单的splash screen实现

把一个Default.png放到你的ios project resource里,然后在AppDelegate的didFinishLaunchingWithOptions method的开头加入下面这行代码即可    [NSThread sleepForTimeInterval:2.0]; //splash画面就停留2秒后消失ref link: http://blog.sina.com.

2012-05-12 15:12:15 6438

转载 iOS: popup半透明的modal window

http://www.hksilicon.com/kb/articles/32946/presentModalViewControllerUIViewhttps://github.com/reednj/TDSemiModal 这个lib在arc下可以编译,但dismiss时出错。qq

2012-05-12 04:36:40 2226

原创 iOS: 自定义navigation bar

需求想用图片来作为navigation bar的背景,而且左右button做得漂亮点。在网上找了半天,提出的方案是 子类化一个UINavigationBar,然后在drawRect里设置,但是这样只在iOS4里可行。但iOS5不支持这里的drawRect,你需要写代码分别处理iOS4 and 5。参考文档:http://www.iosdevnotes.com/2011/09/cus

2012-05-11 09:53:21 3326

原创 iOS: iOS5有,但iOS4没有的特性

下面这些iOS 4不兼容* storyboard (iOS 4 只能使用nib)* segue (iOS 4用代码来实现switch view)* NSJSONSerialization (iOS 4推荐用jsonkit)* alert window的 user and password style

2012-05-10 14:29:24 953

原创 iOS: Jsonkit

1. Download jsonkit from https://github.com/johnezang/JSONKit 2. copy JSONKit.h and JSONKit.m files to your project3. if use ARC, update following setting4 sample codes (记得import JSONKit.h)

2012-05-10 14:22:22 2339

转载 iOS: 推荐的几个iOS开发参考Blog web site

Best Tutorialhttp://www.raywenderlich.com/tutorialshttp://disanji.net/category/iphone-doc/http://cocoawithlove.com/代码例子区http://www.cocoachina.com/bbs/thread.php?fid=19

2012-05-10 11:27:31 904

原创 iOS: 最简单的Table View

http://disanji.net/2010/12/17/ios-design-simple-tableview/

2012-05-10 11:26:09 475

转载 iOS: Classes for fetching and parsing XML or JSON via HTTP

http://cocoawithlove.com/2011/05/classes-for-fetching-and-parsing-xml-or.html

2012-05-10 11:25:18 546

转载 iOS: login window design

QuickDialoghttps://github.com/escoz/QuickDialogQQ登录界面demohttp://www.cocoachina.com/bbs/read.php?tid=69074&page=1Login interface designhttp://www.photoshop-plus.co.uk/2012/04/13

2012-05-10 09:28:07 942

转载 iOS: UINavigationController Customization Tutorial

http://blog.csdn.net/zypsg/article/details/6363470

2012-05-10 09:20:46 663

转载 iOS: UI 开发

中文http://blog.csdn.net/column/details/zhf156.htmlTable View http://www.raywenderlich.com/312/beautiful-table-view-helper-classhttp://cocoawithlove.com/2009/04/easy-custom-uitableview-d

2012-05-08 22:59:57 1165

转载 iOS: 利用ModalViewController切换View

http://www.youtube.com/watch?v=uDOplXP7r3Ahttp://www.yifeiyang.net/iphone-developer-advanced-7-use-modalviewcontroller-switch-view/

2012-05-08 01:11:00 911

EJBTest.war

EJBTest.war

2007-07-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除