문제

Does anyone know if its possible to set the amount of memory available in the simulator?

I'm assuming the simulator will use as much memory as possible from the system but this makes it more difficult to recreate certain low memory crashes/bugs.

도움이 되었습니까?

해결책

No it isn't possible.

Testing things like memory consumption and performance should be done on the device, not the simulator. Even if you could limit the memory in the simulator you wouldn't get the same effect as there are very many different factors that will dictate how much available memory any given iPhone device will currently have.

You can simulate a "memory warning" to test if your responses to that warning behave correctly, but other than that, you should really be testing this kind of thing on a physical device.

다른 팁

SPList list = web.Lists["Notifications Group"];
foreach (SPListItem item in list.Items)
{
    string fieldValue = item["Specific users"].ToString();
    SPFieldUserValueCollection users = new SPFieldUserValueCollection(web, fieldValue);

    foreach (SPFieldUserValue userValue in users)
    {
        SPUser user = userValue.User;
        //Do something with user
            int userId = user.ID;
            string userName = user.LoginName;
    }
}
.

PowerShell 은이 작업에 가장 적합한 "도구"입니다.

다른 특정 요구 사항이 있습니까?

No this is not possible.

You can always simulate the memory warning situation. According to this you can also verify with the profiler how much memory your app is using see what limits you exceed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top