+ 5

Can anybody post a simple program for IOS device.

Kindly anyone post a sample program for IOS device.

29th Jun 2017, 12:23 PM
John Joy Raj
John Joy Raj - avatar
3 Respostas
+ 3
import UIKit var zaka = [0.0,1.8,2.9,3.4] zaka.append(7) print(zaka) zaka.removeAtIndex(2)  /// 2 in array is 1.8  zaka.count for var i=0;i<4;i=i+1 { print(arc4random_uniform(2))  //// create uniform random numbers } var h = zaka.sort()       ////     array.sort()  /// sort means near value print (h) for var value1 in zaka {      print(value1)        /// only for reading not we can write using this           l                                     loop } let pi=3.4     //// constant values  for var (i, value1) in zaka.enumerate()           ///reading and writing                                                                      \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\using loop  {     zaka[i]     print(zaka[i]) } if var num=Int(tf.text!)     // if variable is sussfull has value than do     \                                         \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\this                                        // chaish sa bâchna ka lia   var dictda=[“1”:”Zaka”;”2”: “Daniyal”] dicta[“3”] =“Hammed”     ///// adding like append
1st Jul 2017, 5:31 AM
Zaka Ahmad Chishti
Zaka Ahmad Chishti - avatar
+ 3
Thanks for your posts
4th Jul 2017, 3:24 AM
John Joy Raj
John Joy Raj - avatar
+ 1
some simple code text
1st Jul 2017, 5:33 AM
Zaka Ahmad Chishti
Zaka Ahmad Chishti - avatar