This is my response API. The image data dynamically changes,with more image at a time or else no image at a time. I have check as ([image_array count]==0) but app crash due to empty array.
Error
reason: '*** -[__NSArrayI objectAtIndex:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(
0 CoreFoundation 0x0243edf6 __exceptionPreprocess + 182
API RESPONSE
{
response = {
Details = {
ID = 4;
address = "";
ancestors = (
);
"comment_count" = 0;
"comment_status" = closed;
description = "";
"description_pt" = "";
duration = 2;
"event_address" = "";
"event_location" = ",";
"event_location_option" = "";
"event_place_address" = "";
"event_place_email" = "";
"event_place_location" = "";
"event_place_phone" = "";
"event_place_website" = "";
filter = raw;
guid = "";
images = (
);
"like_count" = 0;
"like_status" = FALSE;
location = "";
"menu_order" = 0;
"ping_status" = closed;
pinged = "";
"place_event_count" = "";
"place_event_id" = "";
"place_id" = "";
"post_author" = 5;
"post_category" = (
);
"post_content" = "";
"post_content_filtered" = "";
"post_date" = "2015-07-31 ";
"post_date_gmt" = "2015-07-31 ";
"post_excerpt" = "";
"post_mime_type" = "";
"post_modified" = "2015-07-31 ";
"post_modified_gmt" = "2015-07-31 ";
"post_name" = 48;
"post_parent" = 0;
"post_password" = "";
"post_status" = publish;
"post_title" = "";
"post_type" = events;
"tags_input" = (
);
time = "17:50:30";
title = "";
"title_pt" = "";
"to_ping" = "";
video = "";
website = "";
};
Message = "Post Details";
httpCode = 10;
};
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire