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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-03-2011, 03:53 PM   #1 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 210
lukeirvin is on a distinguished road
Default Working with NSString

I want 8 items to be in my string but it's not picking up some of them so I want to make sure I am doing this correctly.

Code:
NSString *string = [NSString stringWithFormat:@"%@, %@, %@, %@, %@, %@, %@, %@", aTextField.text, bTextField.text, cTextField.text, dTextField.text, eTextField.text, fTextField.text, gTextField.text, hTextField.text];
I am sending this information to an image of a QR code but only the first 4 are getting placed.
lukeirvin is offline   Reply With Quote
Old 10-03-2011, 03:59 PM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Are you sure your textfield pointers are ok, did you try NSLoging the values?
baja_yu is offline   Reply With Quote
Old 10-04-2011, 09:43 AM   #3 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 210
lukeirvin is on a distinguished road
Default

Yes. They are ok
lukeirvin is offline   Reply With Quote
Old 10-04-2011, 11:13 AM   #4 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Did you try NSLogging individual textfields' texts to see what you get as the output?
baja_yu is offline   Reply With Quote
Old 10-04-2011, 05:02 PM   #5 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 210
lukeirvin is on a distinguished road
Default

Yes. They the NSLog's are showing what I type in.

It must have to do with the size of the QR code or how it's constructed.

It seems that it can only hold so much information. Normall 3 of my 8 UITextFields.

Code:
static const CGFloat kPadding = 50;

CGFloat qrSize = self.view.bounds.size.width - kPadding * 2;
    
    qrImageView.frame = CGRectMake(60, 150, 250, 250);
	qrImageView.frame = CGRectMake(kPadding, (self.view.bounds.size.height - qrSize) / 2,
                                   qrSize, qrSize);
	[qrImageView layer].magnificationFilter = kCAFilterNearest;
    
	[self.view addSubview:qrImageView];
lukeirvin is offline   Reply With Quote
Reply

Bookmarks

Tags
nsstring, uiimage

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 388
17 members and 371 guests
13dario13, 7twenty7, eski, EvilElf, glenn_sayers, HemiMG, iOS.Lover, jarv, LunarMoon, n00b, pbart, Pudding, sacha1996, Sami Gh, UMAD, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,672
Threads: 94,122
Posts: 402,906
Top Poster: BrianSlick (7,990)
Welcome to our newest member, yuncarl28
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:20 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0