Added latest iOS code (This is my first iOS project so it's rough)
Fixed some crazy corrputed loop or something wow