IPhone
iteye_6230
这个作者很懒,什么都没留下…
展开
-
@property详解
Objective-C语言关键词,与@synthesize配对使用。 功能:让编译好器自动编写一个与数据成员同名的方法声明来省去读写方法的声明。 如: 1、在头文件中: @property int count; 等效于在头文件中声明2个方法: - (int)count; -(void)setCount:(int)newCount; 2、实现文件(.m)中 @synthesize ...原创 2011-08-11 10:39:19 · 191 阅读 · 0 评论 -
IPhone 之 UIView的一些基本方法理解
init:方法在init方法中实例化必要的对象(遵从LazyLoad思想)init方法中初始化ViewController本身 loadView:方法这是当没有正在使用nib视图页面,子类将会创建自己的自定义视图层。绝不能直接调用。如果手工维护views,必须重载重写该方法。当view需要被展示而它却是nil时,viewController会调用该方法。loadView和IB构建view你...原创 2011-12-13 20:49:36 · 69 阅读 · 0 评论 -
IPhone 之 UITableViewCell自适应高度
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { // 列寬 CGFloat contentWidth = self.tableView.frame.size.width; // 用何種字體進行顯示 UIFont *font = [...原创 2011-12-19 15:51:49 · 91 阅读 · 0 评论 -
IPhone 之 UINavigationController
1. 创建Navigation-based application 工程2. RootViewController.h #import <UIKit/UIKit.h>@interface RootViewController : UIViewController { }-(IBAction)englishClick:(id)sender;@end...2011-12-26 23:14:49 · 109 阅读 · 0 评论 -
一些iOS高效开源类库
KissXml——xml解析库相关教程:http://www.iteye.com/topic/625849http://sencho.blog.163.com/blog/static/83056228201151743110540/很方便的一个xml解析器,支持Xpath查询。skpsmtpmessage——Quick SMTP邮件发送svn checkout http://skp...原创 2012-03-20 16:06:35 · 88 阅读 · 0 评论 -
IPhone之如何使用偏好设置
1. 在项目工程里新建一个setting.bundle文件2. 程序中调用bundle内容方法: NSString *textValue = [[NSUserDefaults standardUserDefaults] stringForKey:@"textEntry_key"];3. 程序中修改偏号配置: NSUserDefaults *userDefaults ...2011-12-03 10:13:46 · 260 阅读 · 0 评论 -
IPhone 之 UITableView 带搜索
@interface TableViewAppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; UINavigationController *navigationController;}@property (nonatomic, retain) IBOutl...原创 2011-12-03 14:12:01 · 78 阅读 · 0 评论 -
IPhone 之 UIPageControl,UIScrollView 分页
1. ScrollDemoViewController.h #import <UIKit/UIKit.h>@interface ScrollDemoViewController : UIViewController<UIScrollViewDelegate> { IBOutlet UIPageControl *pageControl; IBOu...2011-12-06 16:18:13 · 115 阅读 · 0 评论