我正在构建应用程序,在其中使用 Json 文件检索菜单列表:我在 UITableview 中遇到问题,加载速度太慢。
Json 示例:
"Mon": [
{
"Type" : "Breakfast",
"Name":"Sweet Potato Breakfast Taquitos",
"Price" : "OMR 1.500",
"Image":"http://img203.imageshack.us/img203/4443/satbf1.jpg",
"Description": "olive oil, sweet potato , onions, jalapenos , cilantro , salt , pepper , shredded cheddar cheese , eggs , milk, corn tortilla , olive oil "
},
{
"Type" : "Lunch",
"Name":"Mexican Rice",
"Price" : "OMR 1.500",
"Image":"http://img21.imageshack.us/img21/4296/mlunch1.jpg",
"Description": "rice, chicken broth, butter, olive oil, onion, garlic, tomato paste, lime juice, cilantro, cumin, salt"
}
]
我发现我必须将我的图像路径转换为 Base46 字符串...... (我怎样才能自动做到这一点)?我的新路径的格式将如何?
有什么帮助吗?