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

View Single Post
Old 09-01-2010, 05:21 PM   #1 (permalink)
wheli
Registered Member
 
wheli's Avatar
 
Join Date: Jan 2010
Posts: 130
wheli is on a distinguished road
Default base64encoding works in 4.0, but not 3.2

Hey Guys,

I am trying to figure out why this line of code works when i have my active executable set to 4.0, but not 3.2:

Code:
NSString *authString = [[[NSString stringWithFormat:@"%@:%@", username, password] dataUsingEncoding:NSUTF8StringEncoding] base64Encoding];
It crashes on 3.2 and the console has this error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSConcreteMutableData base64Encoding]: unrecognized selector sent to instance 0x4c28d20'
wheli is offline   Reply With Quote
 

» Advertisements
» Online Users: 368
14 members and 354 guests
Absentia, antonwilliams, breennorah, Domele, dre, HemiMG, heshiming, ipodphone, KaliJen00, linkmx, Matl43Owa, mjnafjke, raymng, sathiamoorthy
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,579
Threads: 94,082
Posts: 402,769
Top Poster: BrianSlick (7,990)
Welcome to our newest member, breennorah
Powered by vBadvanced CMPS v3.1.0

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