Posts by Douglas Ferreira • 677 points
17 posts
-
1
votes1
answer200
viewsA: Integrate fb into Ios Swift
You can, provided that when you authenticate with Facebook you ask for permission user_friends to access the list of friends. A request to get the list of friends is as follows: let meRequest =…
-
1
votes3
answers312
viewsA: How to Configure Tab Bar Controller?
By storyboard you won’t be able to select another item. I suggest you select it by code, when the application is launched, on - application:didFinishLaunchingWithOptions: with the code below:…
-
6
votes2
answers2465
viewsA: Wrong time on Mongodb
The MongoDB works with UTC, ie, time zone without adjustments. You will always have to consider this when using Date. As in Brazil the time zones are -3h and -4h you will always see the hours more…
-
1
votes1
answer92
viewsA: Creating a custimized authorization message
No, you cannot customize the native iOS message to request location authorizations. What I suggest you do is create this UIAlertView with the message you want and show it before the…
-
3
votes1
answer86
viewsA: Core Data issue in iOS 7
You won’t be able to use the NSBatchUpdateRequest in the iOS 7, because this was only introduced in the iOS 8. Reference: iOS 8.0 Diffs API In iOS 7 what you have to do is iterate between the…
-
2
votes2
answers83
viewsA: How to use/maintain obsolete methods for older versions of iOS?
Just check which method can be used on application:didFinishLaunchingWithOptions:. // Verifica qual método utilizar com base no isRegisteredForRemoteNotifications (iOS 8) if ([application…
-
4
votes1
answer51
viewsA: Importing an objc control into Swift: Error when putting an action (func) of my contole
There is a conflict between the class name MenuView and the signature of the delegate method which also calls MenuView. In Objective-C, the signature of the method is MenuView:didTouch, but in Swift…
-
1
votes2
answers93
viewsA: Adapting iOS 7 Code to iOS 8
It is hard to say whether you will have problems or not, it will vary from the components and dependencies of each project. You can check the list of changes directly in the Apple documentation:…
-
2
votes1
answer433
viewsA: How to find coordinates in Apple maps?
Using the MapKit few lines of code are required. After adding the framework to the project and the map itself on the screen, you can insert a point in a given coordinate in this way: // Alloca um…
-
1
votes3
answers408
viewsA: Xcode does not create storyboard
From what I understand it seems to be all right. When a Single View Application is created your project already comes with a Storyboard and this is called Main.storyboard. But even so if you want to…
-
1
votes2
answers832
viewsA: Example of Picker View in Swift
You just need to set the delegate and the datasource of UIPickerView in your viewcontroller (this can be done by storyboard) Declare the protocols: `class ViewController: UIViewController,…
-
1
votes2
answers194
viewsA: Call another screen after a few seconds without user interaction
You can also use the methods of UIResponder that your AppDelegate inherits. - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [super touchesBegan:touches withEvent:event]; // Ao…
-
1
votes1
answer258
viewsA: Change the minimum age of an app already published in the Apple Store
You can only change the rating of your app by submitting a new version of it. This is because Apple always wants to validate if the rating checked is according to the content of the app during the…
-
5
votes1
answer323
viewsA: How to get SHA1 from a String in Swift?
you can use Apple’s encryption framework. Add #import <CommonCrypto/CommonCrypto.h> in its class that bridges the gap between Objective-C and Swift (*-Bridging-Header.h). So you can use the…
swiftanswered Douglas Ferreira 677 -
9
votes1
answer235
viewsA: What is the difference between the + and - signal in Objective-C
So, the methods with prefix - are instance methods, i.e., you can only call these methods through an instance of the class: NSString *instanciaString = [[NSString alloc] init]; [instanciaString…
-
1
votes2
answers227
viewsA: Splash screen while receiving web service data
Cannot control splash to make it last longer on screen. I suggest you create a new viewcontroller that shows the splash screen image (default.png) in the method…
-
1
votes2
answers46
viewsA: Is it possible to make a selection list in the form of a loop?
Just like the @Rivas said, there is no very practical way to do it. I’ll try to illustrate a little better the explanation above: You need to multiply the amount of elements by a high number, 100,…