效果图:工程图:要加入第三方库文件YXSpritesLoadingView。RootViewController.m//点击任何处,弹出提示-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [YXSpritesL...
分类:
其他好文 时间:
2014-10-27 15:35:38
阅读次数:
177
效果图:工程目录:此代码需要加第三方库,MLTableAlert.RootViewController.m//点击任何处,出现提示框-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self showTableA...
分类:
其他好文 时间:
2014-10-27 14:14:54
阅读次数:
152
效果图:工程图:注意:此文件要加入第三主库URBAlertView.RootViewController.m//点击任何处,出现提示框-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ URBAlertVie...
分类:
其他好文 时间:
2014-10-27 12:25:20
阅读次数:
122
目录 第一步:将ShareSDK导入到你的工程中 第二步:添加依赖框架 第三步:引入头文件和注册ShareSDK的AppKey 第四步:配置社会化平台的AppKeys 第五步:设置rootViewController属性 第六步:分享内容 可选:iPad版本分享菜单集成 可选:使用服务器托管模式初始...
分类:
移动开发 时间:
2014-10-24 18:41:28
阅读次数:
452
1、如何改成竖屏?RootViewController.mm文件中return UIInterfaceOrientationIsLandscape( interfaceOrientation );改成return UIInterfaceOrientationIsPortrait( interface...
分类:
其他好文 时间:
2014-10-24 18:09:10
阅读次数:
176
跟UINavigationController类似,UITabBarController也可以轻松地管理多个控制器,轻松完成控制器之间的切换,典型例子就是QQ、微信等应用
UITabBarController的使用步骤
初始化UITabBarController
设置UIWindow的rootViewController为UITabBarController
根据具体情况,通过ad...
分类:
其他好文 时间:
2014-10-23 10:47:08
阅读次数:
158
效果图:当点击按钮的时候,会播放相应的钢琴的声音。此代码需要引入库AudioToolbox.framework.此为工程目录:RootViewController.h#import //加入头文件#import @interface RootViewController : UIViewContro...
分类:
其他好文 时间:
2014-10-22 00:27:39
阅读次数:
194
效果图:代码:RootViewController.h#import #import @interface RootViewController : UIViewController{ //存放歌曲数组 NSMutableArray *musicArray; //名字所在的labe...
分类:
其他好文 时间:
2014-10-21 23:12:49
阅读次数:
324
利用UINavigationController,可以轻松地管理多个控制器,轻松完成控制器之间的切换,典型例子就是系统自带的“设置”应用
UINavigationController的使用步骤
初始化UINavigationController
设置UIWindow的rootViewController为UINavigationController
根据具体情况,通过push方法添...
分类:
其他好文 时间:
2014-10-21 17:44:38
阅读次数:
148
开始效果图:点击button后效果图:工程目录:工程详细目录:RootViewController.h#import //加入头文件#import "DCPathButton.h"@interface RootViewController : UIViewController@endRootView...
分类:
其他好文 时间:
2014-10-21 13:39:27
阅读次数:
169