Recently tried to learn iOS development. Of course, there have been many problems in the learning process. Finally completed a mvcdemo borrow everyone reference;
MVC as the name implies Model-view-controller divided into three layers, I think viewcontroller,uiview and beans are divided into three group (*group is no real folder);
Simply say the need,
1. Add a Shopview (composed of Uiimageview + Uilabel). Add all prompts when the label has all been added and the button
_addbtn.enabled = NO;
2. Delete button deletes data.
[[Self.shopsView.subviews Lastobject] removefromsuperview];
The button is dimmed until all is removed
_removebtn.enabled = NO;
The icon,name of the data is obtained by the plist (i.e. XML file) file, which is obtained by the nsdictionary model.
_shopsarray = [Nsarray arraywithcontentsoffile:[[nsbundle mainbundle] Pathforresource:@ "shops " OfType:@"plist"];
Screen temporarily not available * * *
The first time to write a blog, I hope you forgive;
Accessories (Baidu Cloud): <a href= "http://pan.baidu.com/s/1nuZ9nWt" >simplemvc source files </a>
The simple MVC implementation of iOS