Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 05-21-2010, 06:49 PM   #21 (permalink)
bittenapple
Registered Member
 
Join Date: May 2010
Posts: 1
Default

Thank you for the tutorial.

Can anyone please, oh sweet pain, please take me out of my misery by writing a simple example on how the heck you pass a number (int value) which gets created in 1 .m file to another .m file.

In the apple demo application called QuartzDemo, there is a file called QuartzImages.m

This file has the following line of code:
Code:
CGPDFPageRef page = CGPDFDocumentGetPage(pdf, 1);
Notice the (pdf, 1) in that line. This number should be replaced with an integer variable.

Now, there is also a file called MainViewController.m.
In that file, there is a method? called -(void)viewDidLoad

In that method, I want to assign a number to the integer variable which would replace the damn "1" with whatever number I want.

I have been pulling my hair trying to get this done, reading beginning iPhone 3 Development book, dev documentation and God knows what not, without results.

Any help would be greatly appreciated...

Sigh.
bittenapple is offline   Reply With Quote
 

» Advertisements
» Online Users: 347
14 members and 333 guests
ADY, antonwilliams, dcool, Desert Diva, HemiMG, jakerocheleau, leahov, mer10, michelle, MozyMac, nobre84, smithdale87, thh022, vogueestylee
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,222
Posts: 380,721
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:21 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.