tailieunhanh - iPhone Design Award-Winning Projects phần 7
Hình 3-6. Plus + bảng dẫn theo dõi sự tiến bộ của người chơi trong tất cả các + Thêm vào trò chơi kết nó không hoàn toàn mô hình tương tự. Vì vậy, tôi thực sự muốn chỉ cần có được một phần mà tát vào Growl mà không có thêm bất kỳ công việc liên quan đến cho người sử dụng, | 114 CHAPTER 8 Q A Delicious Library 20MB numbers. They re trying to protect themselves against the future but it s total bullshit because then I have no clue. What am I working with Is it gigabytes They don t even publish how much physical RAM you have much less how much you can use. Worse there s no system call to get it. Most of the stuff they ve written is to play up the iPhone not call out its limitations. Apple is like Yeah we have a real virtual memory system and I m like Oh real virtual memory then it won t ever crash Then finally they re like Oh we have a real virtual memory system but we don t have demand paging for RAM allocation. And I m saying What That s when I realized that I had written this program as if I were writing on a big computer when I really should have been thinking of it as an embedded device. I had to go back and rewrite it to graph 5 bytes off the network and immediately run this through the SQL uncompressor and then immediately write that to disk and then flush that memory and do it again. And so it never so it went from using 60MB to transfer a 30MB database to using 10k and it got a little faster in the process. It was a good win. But when you re switching from the Mac to this device you really have to remember Oh I just can t just magically map in a 30MB file. Did you consider making the app standalone I seriously considered it and there were people that were trying to talk me into it. Maybe if I got barcode scanning to work well I would ve thought about it more. There are some apps that are pretty valid as standalones on the iPhone. Here s the thing I really think the future is gonna be about families of apps where you have the same data on different devices and you just have different capabilities on every device. I just don t see someone wanting to spend a lot of time on their little iPhone editing their particular library but I could be wrong about that. I m planning a very functional desktop app for my next project with .
đang nạp các trang xem trước