0

I'm trying to get the version name from a php file for my iphone app.

//version.php
 <?php 
    echo '1.0'; 
 ?>

How can I get the "1.0" into a NSString?

Thanks

1 Answer 1

1

you can try this :

<?php 

   echo json_encode(array('version' =>'1.0'));

?>

you retreive json string and (json)decode it, get the array. this link to halp you : http://mobileorchard.com/tutorial-json-over-http-on-the-iphone/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.