As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
From the UIWebView, The UIWebView class should not be subclassed.
I just want to know why. There is no more detail about this.
Because I met a memory out issue in my project, which create one extended UIWebView, which could cause memory out issue. Otherwise, just create the UIWebView instance will not cause the issue.
That is why I want to address this problem and try to analyze more.
Thanks for the guy to give some comments in terms of the design pattern with MVC.
I hope to close this once get some comments for memory management.
Thanks,
iOS development works on MVC concept and V part which is View should be as generic as possible. If you write a custom view, when the model changes the view has to change as well. It becomes interlinked..This means the view cannot be reused, especially when a new UI comes out..Better to put the code in the controller portion...Key: Keep the view as generic as possible..
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I usually used to do every thing programmatically, what I mean is I am not using the Interface builder instead I do every thing in the code, like UIButton or UITableView, etc..
So can anyone tell me what is the best for programming iOS, or does that make any difference on the application performance or any thing else?
I am new to programming so I wanna hear that from someone in the field, I searched in Google but I couldn't find a clear answer.
Thanks.
The advantage of using IB is that it allows you make interface really quickly without checking a hundred times that a label should be moved up or down by pixel or two. But when you use IB you can't inherit nib files so if you have a lot of common interface features in several view controllers across your app you probably should use just code.
You really should separate your views from the code. This is what for Interface Builder was made for.
It builds xml files, apart from your application logic, so when you'll need to change anything in design you won't have to touch your code, and mess anything by mistake.
All modern program designs separate view from business logic: MVC, MVVM, MVP and so on. It is considered the best pattern for programming.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I need a control which can display thumbnails similar as seen on the attached image.
It should support:
virtual mode
handle up to 50.000 images
thumbnail groups
scaling
work with Delphi XE3.
If such control does not yet exist I would have to create one from scratch. What is the best strategy for developing a control like this?
See an example of what it should look like
RMKlever has a series of blog-posts and sample code here. that can emulate a wide variety of things, but you would have to make code modifications yourself if you're particular about your desired format.
I believe the control is one of his own called rkView. The demos may require a lot of work to get them working for you, I found working with his stuff was difficult to get started with due to lack of documentation and samples but I eventually figured it all out.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have an app in progress that requires communication between two already identified users (not messenging or SMS). The data is persisted remotely however the UI needs to be dead simple . Is there a iMessage type view controller that is available that i can use? I really like the one I have attached below, just not sure how to get it or even if someone has better ideas?
There are a lot of pre-made bubble controls:
AcaniChat
PTSMessagingCell
SSMessagesViewController
UIBubbleTableView
There are also some you can purchase at CocoaControls.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Can anyone explain what is the life cycle process of iPhone? i.e from the start to end of the application life cycle.
See also This post on Cocoanetics that present a very useful flowchart explaining the different calls to the AppDelegate methods during the app life cycle:
here is diagram image for understand Life Cycle (iPhone / Android)
Edit: Here is the more detailed information from Apple Docs.
Part 1:
Part 2:
Reference
Also this one is for View Controller Life Cycle methods
There's another simpler one in ios developer's cookbook
If you want to something more detail ,you can read the official document delivered by apple
It has been updated with iOS6.0
http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/ViewLoadingandUnloading/ViewLoadingandUnloading.html
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Is there a guide / book about custom control development for iOS? All the books I've found don't go beyond using UIKit builtin controls.
As #petert wrote, Cocoa Controls is a great resource, but my favourite is by far iDev Recipes (even though it's not updating that often anymore). Check also http://maniacdev.com/, many open source libraries/projects can be found and it gets updated regularly. Ray Wenderlich has also many nice tutorials - scroll down to "Graphics and Animation".
EDIT: I just saw that #Jano suggests idevrecipes as well, sorry for doulbe posting