//
// MainViewController.h
// CuteCalc
//
// Created by Ezio Edward on 10-8-10.
// Copyright __MyCompanyName__ 2010. All rights reserved.
//
#import "FlipsideViewController.h"
typedef enum {
plusSign = 1,
minusSign = 2,
timesSign = 3,
divideSign = 4
} OperatorSign;
typedef enum
{
soundTypeNumber,
soundTypeError
} SoundType;
@interface MainViewController : UIViewController <FlipsideViewControllerDelegate> {
UITextField *showText;
int left;
double resultLeft;
int right;
double resultRight;
BOOL opSign;
BOOL isLeft;
BOOL dotSign;
BOOL judgeClear;
int dotLength;
BOOL judgeDotBug;
NSString *showSave;
NSString *constantZero;
BOOL transWhat;
BOOL isOp;
BOOL continueCal;
BOOL transValue;
BOOL isExp;
BOOL opBug; //change positive or minus, will lead to result fault
int floatBug; // float type, we can't give 0.1 to a float, and show 0.1
OperatorSign isOperator;
BOOL isPlay;
UIButton *soundBtn;
UIImage *imageMute;
UIImage *imagePlay;
}
@property (nonatomic, retain) IBOutlet UITextField *showText;
@property (nonatomic, retain) NSString *showSave;
@property (nonatomic, retain) IBOutlet UIButton *soundBtn;
- (IBAction) getNumber:(id)sender;
- (IBAction) getOperator:(id)sender;
- (IBAction) clear:(id)sender;
- (IBAction) equal:(id)sender;
- (void) calculate:(OperatorSign)currentOperator;
- (IBAction) dotButton:(id)sender;
- (IBAction) positiveAndMinus:(id)sender;
- (NSString *) changeFloat:(double)Right;
- (void) divZero;
- (IBAction) showInfo:(id)sender;
- (void) voicePlay:(SoundType)currentType isPlay:(BOOL)isPlayed;
- (IBAction) playVoice:(id)sender;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
iphone开发应用之计算器
共110个文件
png:50个
pbxbtree:8个
hmap:5个
4星 · 超过85%的资源 需积分: 10 30 下载量 184 浏览量
2010-08-27
15:01:24
上传
评论
收藏 1.61MB ZIP 举报
温馨提示
这款计算器已上传到app store 大家不信可以在app store上搜索 CuteCal便能找到.
资源推荐
资源详情
资源评论
收起资源包目录
iphone开发应用之计算器 (110个子文件)
control 256KB
CuteCalc 99KB
CuteCalc 36KB
build-state.dat 104KB
build-state~.dat 25KB
CuteCalc.dep 23KB
CuteCalc~.dep 3KB
.DS_Store 15KB
.DS_Store 12KB
.DS_Store 6KB
MainViewController.h 2KB
CuteCalcAppDelegate.h 626B
FlipsideViewController.h 561B
pbxindex.header 24B
CuteCalc.hmap 2KB
CuteCalc-project-headers.hmap 973B
CuteCalc-own-target-headers.hmap 793B
CuteCalc-all-target-headers.hmap 793B
CuteCalc-generated-files.hmap 121B
CuteCalc.LinkFileList 551B
MainViewController.m 9KB
CuteCalcAppDelegate.m 3KB
FlipsideViewController.m 1KB
main.m 361B
ZhangNan.mode1v3 40KB
luojiaqi.mode1v3 39KB
MainView.nib 7KB
FlipsideView.nib 3KB
MainWindow.nib 1KB
MainViewController.o 71KB
CuteCalcAppDelegate.o 47KB
FlipsideViewController.o 37KB
main.o 6KB
CuteCalcAppDelegate.o~$ 47KB
CuteCalcAppDelegate.o~> 0B
cdecls.pbxbtree 146KB
decls.pbxbtree 146KB
refs.pbxbtree 113KB
imports.pbxbtree 8KB
files.pbxbtree 3KB
protocols.pbxbtree 2KB
subclasses.pbxbtree 2KB
categories.pbxbtree 1KB
project.pbxproj 24KB
symbols0.pbxsymbols 631KB
ZhangNan.pbxuser 9KB
luojiaqi.pbxuser 4KB
CuteCalc_Prefix.pch 322B
PkgInfo 8B
CuteCalc-Info.plist 894B
Info.plist 631B
Info.plist 594B
backGround.png 101KB
backGround.png 101KB
icon.png 24KB
icon.png 24KB
logo.png 22KB
logo.png 22KB
9.png 12KB
9.png 12KB
5.png 10KB
5.png 10KB
3.png 10KB
3.png 10KB
6.png 10KB
6.png 10KB
equal.png 9KB
equal.png 9KB
8.png 9KB
8.png 9KB
c.png 9KB
c.png 9KB
4.png 8KB
4.png 8KB
0.png 8KB
0.png 8KB
1.png 8KB
1.png 8KB
plusSign.png 8KB
plusSign.png 8KB
2.png 8KB
2.png 8KB
divSign.png 7KB
divSign.png 7KB
7.png 7KB
7.png 7KB
information.png 6KB
information.png 6KB
or.png 5KB
or.png 5KB
timeSign.png 5KB
timeSign.png 5KB
play.png 4KB
play.png 4KB
mute.png 4KB
mute.png 4KB
minusSign.png 3KB
minusSign.png 3KB
dot.png 3KB
dot.png 3KB
共 110 条
- 1
- 2
资源评论
- u0104668262013-07-01功能都实现了,就是做的有点花俏
- lijun19932017-11-15还可以哈哈哈
- cnwinner9882011-10-06下载了却不能用,闪了一下就退出了,不知是什么原因?
罗家齐
- 粉丝: 45
- 资源: 21
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功