Posts by fpg1503 • 1,248 points
29 posts
-
0
votes1
answer36
viewsA: @Protocol is not working
Your delegate is a id<ViewControllerDelegate> and the definition of the protocol ViewControllerDelegate the method addCard is not optional. Thus checking [self.delegate…
-
0
votes2
answers68
viewsA: Make disappear buttons based on login
No point in setting tintColor for nil. If you set the tintColor for [UIColor clearColor] and enabled for NO the button will disappear.…
-
1
votes2
answers230
viewsA: IOS - Prevent the keyboard from hiding Text Field?
You can use the lib TPKeyboardAvoiding(https://github.com/michaeltyson/TPKeyboardAvoiding). Just change the class of UIScrollView for TPKeyboardAvoidingScrollView.…
-
0
votes1
answer53
viewsA: Hide Rows from a pickerview when selecting an item from another pickerview - Swift
You must change your numberOfRowsInComponent and titleForRow forComponent so that they take into account the selection of the third party. Done that’s just calling reloadComponent of the last when…
-
1
votes2
answers1077
viewsA: Script to open facebook messenger app chat
To open a certain thread on Facebook Messenger just use the Scheme URL fb-messenger://user/{user-id}. The Parameter user-id is a long integer as can be seen in…
-
2
votes2
answers79
viewsA: How to Create a Slide Side Out Submenu
Short answer Do not use side menu.1, 2 (both in English) Long answer The fact that you wear one SWRevealViewController is irrelevant. As Rafael Leão said just fiddle on his UITableView. A very…
-
2
votes1
answer44
viewsA: How to Choose position to print a string in a text?
Just create a NSMutableString and use the method insertString:AtIndex:. Example: NSMutableString *vitima = [NSMutableString stringWithString:@"Minha String Legal"]; NSLog(@"%@", vitima); //Imprime…
-
7
votes3
answers2732
viewsA: When and how to use protocols and delegates?
Objective-C In Objective-C there are two types of protocols: Formal and Informal Informal Protocols An informal protocol is a category of NSObject usually without implementation, that is, all…
-
2
votes1
answer55
viewsA: How do I use Airprint to print a text from a Uitextfield?
Check if the device can print Just check out isPrintingAvailable in the UIPrintInteractionController: if ([UIPrintInteractionController isPrintingAvailable]){ // Chamar impressão } else { // Fazer…
-
15
votes2
answers16859
viewsA: How can I get the lottery results?
EDIT (08/29/2016): This API has been taken off the air As mentioned by Fernando an API to see the result of lotteries can be seen here. Just make a GET for…
-
0
votes1
answer77
viewsA: Error while using Sttwitter and Swifter
In Swift one should not put the label of the first parameter as we see in documentation This occurs for the reading to be the same as Objective-C. As there is already the screenName in the method…
-
2
votes1
answer1175
viewsA: How to resize image with fixed width
If you want the image to always be 200 wide then its new width should be 200 and the new height should be proportional, or is equal to its ratio times the new width. <?php $original_width = x;…
-
3
votes1
answer780
viewsQ: How to integrate Objective-C and Swift?
I am doing a project on Swift and would like to use some files in Objective-C. It is possible to do this? In case I installed using the Cocoa Pods, I don’t know if it influences anything.…
-
6
votes1
answer780
viewsA: How to integrate Objective-C and Swift?
Using classes in Objective-C in the Swift Creating a Bridging Header When you drag the files to the project By dragging a .m The Xcode going will most likely show you this window: Just answer Yes…
-
0
votes3
answers408
viewsA: Xcode does not create storyboard
As mentioned by Douglas Ferreira the Xcode 6 includes the Size Classes and with that just a storyboard, however this does not stop you from using various storyboards, Xibs or even mix them! To…
-
0
votes1
answer204
viewsA: Xml parser in Swift
The link you posted despite also being an XML nay is an RSS Feed. To show him you must: Download the XML Parse XML and Create Your Template Show data on screen I can see you’re using the…
-
0
votes1
answer136
viewsA: Youtube videos on app
It was only necessary to include the file YTPlayerView-iframe-player.html within the Directory Assets using the option Create Folder Ferences as described in the documentation. The step mentioned by…
-
0
votes1
answer190
viewsA: Webview with some problems in Swift
Make sure that your UIWebView has the size needed to display the content. A suggestion is to create NSLayoutConstraints to work on all devices.
-
0
votes1
answer59
viewsA: How to disable ARC for just a few project files?
Yes, it is possible to disable ARC only for some files by adding the build flag -fno-objc-arc in them. You add build flags in Targets -> Build Phases -> Compile Sources. Double-click the right…
-
0
votes1
answer59
viewsQ: How to disable ARC for just a few project files?
I have a project using ARC but would like to add files that are not using ARC. It is possible to do this?
-
13
votes1
answer13778
viewsA: How does the MD5 hash algorithm work?
As defined in RFC1321 the MD5 (Message-Digest Algorithm 5) is a message summary algorithm. It receives as input a message of an arbitrary length and produces as output a 128-bit "fingerprint".…
-
1
votes1
answer181
viewsA: What’s the best way to store images in an iOS app?
The two main options, as you said (and as mentioning in that OS question), sane: Save the file to disk and save the path to the image in Core Data. Save image file binary to Core Data. I must say I…
-
1
votes1
answer621
viewsA: Host two websites in a single VPS
Inside the directory of Apache there’s a directory called sites-available, in it there is an example called 000-default.conf. To add new websites create two copies of this file: 010-site1.conf and…
-
2
votes1
answer353
views -
1
votes1
answer109
viewsA: LR register with zero value in IRQ Interruption Handler
The routine subs pc, lr, #4 arrow to the recorder PC the value of the recorder LR (which as mentioned is zero) minus the immediate #4 that is, in the next cycle the processor should summarize the…
-
7
votes1
answer6229
viewsA: Prevent zoom on smartphone/tablet with Bootstrap 3
You can disable zoom options on mobile devices by adding user-scalable=no to the meta tag viewport. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,…
-
1
votes1
answer4447
viewsA: DNS registration.br direct to Azure Web App
The Servidor Master and the Servidor Slave 1 are for when you will use another DNS server. If you want to use the DNS server of registro.br you should select utilizar os servidores DNS…
-
2
votes1
answer462
viewsA: Upload limit for AWS S3
First by answering your question: Is there a file size limit to send? Yes. Using upload in single Operation the limit is 5GB. For Multipart the limit is 5TB. Amazon recommends using Multipart for…
-
13
votes7
answers12436
viewsA: Use semicolon or not at the end of the lines in Javascript?
Point and comma in javascript is optional as instruction separator, however one should be very careful. A case like: a = b + c (d + e).print() Will be evaluated as: a = b + c(d + e).print(); (as…