私はoneviewcontrollerに整数値を持つiphoneアプリケーションを作成しています。私はsecondviewcontrollerコントローラでその整数値を求めます。別のビューに整数値を渡したい
値はランダムになります。 この整数値をに保存しました。
Nwこのコードを使用していますが、整数値を取得できません。
CODE:passing integer value from one UIView to another UIview
整数値は常にsecondviewcontrollerでゼロとなります。
ヘルプは高く評価されます。
ありがとうございます。
MY CODE:
FirstView.hファイル
NSInteger myScore;
id score;
NSInteger totalscore;
.mファイル
NSInteger *cal = (myScore * 100)/400 ;
totalscore = cal;
score = totalscore;
SecondView.hファイル
int scorevalue ;
SecondView.mファイル
コードを表示できますか? – Sascha
@Sascha:私のコードを編集しました..ありがとうございます。 – iUser
@Shrey:Ok ..私はこれを試しましたが、SecondViewでその値をしたいとsecondviewで値が0(ゼロ)になります。 !! !!:o – iUser