Clear stack of naviframe

Clear stack of naviframe

BY 07 May 2015 Native Application Development

Hi All,

I am trying to clear the stack of naviframe view using below code. But it is deleting only one frame evenif code deletes 5 frames in my case.

void pop_all_view_from_naviframe(){
    Evas_Object *obj;
    while(naviframe_stack_size_ > 0){
        obj = elm_naviframe_item_pop(_naviframe_);
        evas_object_del(obj);
        naviframe_stack_size_–;
        INFO(“naviframe_stack_size_ = %d”, naviframe_stack_size_);
    }
}

What is the correct way to empty the naviframe stack?

Thank you.

Written by