iOS开发UI篇—UIScrollView控件实现图片轮播一、实现效果实现图片的自动轮播
二、实现代码storyboard中布局代码: 1 #import "YYViewController.h" 2 3 @interface
YYViewController () 4 @prop...
分类:
移动开发 时间:
2014-06-02 09:34:28
阅读次数:
295
一、实现效果点击加载更多按钮,出现一个加载图示,三秒钟后添加两条新的数据。
二、实现代码和说明当在页面(视图部分)点击加载更多按钮的时候,主页面(主控制器)会加载两条数据进来。视图部分的按钮被点击的时候,要让主控制器加载数据,刷新表格,2B青年会在视图中增加一个主控制器的属性,通过这...
分类:
移动开发 时间:
2014-06-02 06:25:57
阅读次数:
324
UIkit框架下的几个基本控件,UIButton,UITextField,UILabel,UIImageView,UIScrollView,UITableView,UITableViewCell,UIPageControl;
他们的继承关系,UILabel,UIImageView,UIScro...
分类:
移动开发 时间:
2014-06-02 00:10:21
阅读次数:
361
UILabel:常用属性@property(nonatomic,copy) NSString
*text; // default is nil@property(nonatomic,retain) UIFont *font; // default
is...
分类:
移动开发 时间:
2014-06-02 00:03:51
阅读次数:
432
UIScrollView:常用属性@property(nonatomic)
UIEdgeInsets contentInset; // default UIEdgeInsetsZero. add additional scroll
area around content@prop...
分类:
移动开发 时间:
2014-06-01 23:53:28
阅读次数:
505
一、实现效果 二、实现代码1.数据模型部分YYQQGroupModel.h文件 1 // 2
// YYQQGroupModel.h 3 // 02-QQ好友列表(基本数据的加载) 4 // 5 // Created by apple on
14-5-31. 6 // Copyrig...
分类:
移动开发 时间:
2014-06-01 23:46:16
阅读次数:
375
UITabelView:常用属性@property (nonatomic) CGFloat
rowHeight; // will return the default value if unset@property (nonatomic)
CGFloat sect...
分类:
移动开发 时间:
2014-06-01 17:07:41
阅读次数:
394
[UIDevice currentDevice].batteryMonitoringEnabled = YES;
double deviceLevel = [UIDevice currentDevice].batteryLevel;获取当前剩余电量, 我们通常采用上述方法。这也是苹果官方文档提供的。它返回的是0.00-1.00之间的浮点值。 另外, -1.00表示模拟器。貌似这个方法不错, 也很...
分类:
移动开发 时间:
2014-06-01 14:57:31
阅读次数:
275
上面讲到的知识点在这个示例都有涉及。另外我这里也只是分析部分重要的代码,更多的知识了解请自行下载代码(文章最下面有地址)并结合公开课一起看...
分类:
移动开发 时间:
2014-06-01 14:13:12
阅读次数:
316
跨平台移动应用开发框架Xamarin可以让你完全用C#编写你的应用程序,在iOS、Android、Windows
Phone
8、Windows8和mac平台上共享相同的代码。你可以重用你最喜欢的.NET库,而且还很容易地使用平台特定的库和框架。Xamarin提供了高性能编译的代码和完全访问所有本地...
分类:
移动开发 时间:
2014-06-01 12:24:39
阅读次数:
273