Posts by Rafael Leão • 1,839 points
60 posts
-
1
votes2
answers181
viewsA: Call a new IOS class
The navigation of this app is not strange, on the contrary, this type of behavior is very common in iOS apps. However, you are not required to place instances of UINavigationController as children…
-
1
votes2
answers194
viewsA: Call another screen after a few seconds without user interaction
A possible solution is to use a timer that is reset to each user interaction. When the time limit is reached, the timer will call the specified selector: - (void)resetTimer { if (timer) { [timer…
-
1
votes1
answer320
viewsA: Saving image data from json/web-service to sqlite on iphone
It is even possible to save the image in the bank, but it is not usual. Usually what is done is to save the image in the sandbox of the application (area of the disk that only the app has access…
-
3
votes1
answer148
viewsA: Keep object alive in memory for another class
Its solution is valid (using Appdelegate) but it is bad from the point of view of object orientation. You will be placing on Appdelegate an attribute that is not logically related to that class. I…
-
2
votes1
answer72
viewsA: Objective c Basico, setName error EXEC_BAD_ACESS
Renan, the correct way to create the access interface to class attributes is through properties. For each pair of getter/Setter, create a property. Example: @property(copy, nonatomic) NSString…
-
5
votes1
answer468
viewsA: Using an object in different methods in Objective C
First, by convention, class names in Objective C have the first capital letter. In most cases, it is not necessary to synthesize the property. The compiler will automatically generate the instance…
-
1
votes2
answers526
viewsA: Problem with Nsdate
It’s unclear how you manipulate the bank, and in particular, the date field. It would be necessary to see the writing and reading code and know what technology is used. Anyway, to format an object…
-
3
votes2
answers154
viewsA: Creating an Array with the Keys of a Dictionary
Nsdictionary has the method - (NSArray *)allKeys which returns an array containing all the keys of the dictionary
-
3
votes1
answer64
viewsA: Customizing Uiactivityindicatorview
I recommend using the Mbprogresshud This library has several types of progress indicators already implemented and also allows you to define a custom view, through the property customView. For…
-
3
votes3
answers246
viewsA: Transporting data between Appdelegate and Viewcontroller
You do not need to save this information in Appdelegate. In general I advise not to put the logic of the application in this class but to try to separate in modules. One suggestion would be to…