摘要: #include //输入输出头文件#include#include//局部被调用函数1 成绩检测void test(){ int b;printf("请输入你的成绩\n");scanf("%d",&b);if (b>=0&&b<=100) { printf("分数正常\n等待分析。。。\n"... 阅读全文
posted @ 2015-08-02 13:56 OIMMZC 阅读(562) 评论(0) 推荐(0)
摘要: //求两个函数中的较大者的MAX函数#include int main(int argc, const char * argv[]) { printf("input two nimbers\n"); int max(int x,int y); int a, b,c; scanf("%d,%d... 阅读全文
posted @ 2015-08-02 13:53 OIMMZC 阅读(5159) 评论(2) 推荐(0)
摘要: #import @interface AppDelegate : UIResponder { int k;}@property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"@interface AppDelegat... 阅读全文
posted @ 2015-08-02 13:42 OIMMZC 阅读(334) 评论(0) 推荐(0)
摘要: #import @interface AppDelegate : UIResponder {@public NSInteger timeValue;}@property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"... 阅读全文
posted @ 2015-08-02 13:34 OIMMZC 阅读(274) 评论(0) 推荐(0)
摘要: //声明非原创步骤:1.打开Xcode,单机CreatanewXcodeproject2.左边选择ios下Application,右边选择singleviewApplication3.填写项目名称单机Next4.ViewController.h中定义成员和方法//// ViewController... 阅读全文
posted @ 2015-08-02 13:24 OIMMZC 阅读(634) 评论(0) 推荐(0)
摘要: //此作品非原创#import"ACViewController.h"@interfaceACViewController()@end@implementationACViewController- (void)viewDidLoad{[superviewDidLoad];// Do any add... 阅读全文
posted @ 2015-08-02 13:21 OIMMZC 阅读(807) 评论(0) 推荐(0)
摘要: //此处标明非原创实现iPhone漂亮的动画效果主要有两种方法, 一种是UIView层面的, 一种是使用CATransition进行更低层次的控制, 第一种是UIView,UIView方式可能在低层也是使用CATransition进行了封装,它只能用于一些简单的、常用的效果展现,这里写一个常用的示例... 阅读全文
posted @ 2015-08-02 13:15 OIMMZC 阅读(185) 评论(0) 推荐(0)
摘要: 1. 图片缩放:代码- (UIImage*)resizeImage:(UIImage*)image toWidth:(NSInteger)width height:(NSInteger)height{ // Create a graphics context with the target siz... 阅读全文
posted @ 2015-08-02 13:11 OIMMZC 阅读(349) 评论(0) 推荐(0)
摘要: //非原创UIProgressView顾名思义用来显示进度的,如音乐,视频的播放进度,和文件的上传下载进度等。下面以一个简单的实例来介绍UIprogressView的使用。@interfaceActivityViewController :UIViewController{ UIProgressVi... 阅读全文
posted @ 2015-08-02 13:06 OIMMZC 阅读(508) 评论(0) 推荐(0)
摘要: UIActivityIndicatorView实例提供轻型视图,这些视图显示一个标准的旋转进度轮。当使用这些视图时,最重要的一个关键词是小。20×20像素是大多数指示器样式获得最清楚显示效果的大小。只要稍大一点,指示器都会变得模糊。iPhone提供了几种不同样式的UIActivityIndicato... 阅读全文
posted @ 2015-08-02 13:04 OIMMZC 阅读(157) 评论(0) 推荐(0)