Posts by Tiago Amaral • 1,520 points
139 posts
-
0
votes1
answer103
viewsA: How to work with 1 to 1 relationship in core data?
I bypassed this query by fetching the data and comparing it, and adding the value no to a given field, so the object’s "flag" value was found.
-
0
votes2
answers237
viewsA: Aftnetworking with Token to download image
I was able to download using the following code: AFHTTPRequestOperationManager *operationManager = [AFHTTPRequestOperationManager manager]; operationManager.responseSerializer =…
-
0
votes2
answers237
viewsQ: Aftnetworking with Token to download image
I’m testing Aftnetworking to download images from a backend, but I’m having errors downloading images. I tested several implementations, with this implementation presents error of content not…
-
0
votes1
answer103
viewsQ: How to work with 1 to 1 relationship in core data?
How do I perform operations relating entities in Core Data? These operations will relate data between 2 entities, being of type 1 to 1. I want to relate the image attribute of table 1 to the…
-
1
votes1
answer55
viewsQ: How do I use Airprint to print a text from a Uitextfield?
Someone could indicate a tutorial, or sample code explaining how to print a text from an Uitextfield.
-
0
votes2
answers106
viewsQ: Download data in String format and JPG images
I am implementing a project, which has a Web Service. In this Web Service are saved product data, containing the fields: Name, Value, Description and Product Image. I did some tests downloading only…
-
1
votes1
answer60
viewsQ: Problem receiving the return of an object
I created a class to download data from a web service. And I take the following test steps: I instate the download class in viewDidLoad of Viewcontroller and then run the method, as in the code…
-
2
votes2
answers2410
viewsA: Open link to facebook in iOS Safari
As @Paulorodrigues suggested me on the link> Just add "?ref=0" at the end of the URL. Being: www.facebook.com.br/PAGINA Staying www.facebook.com.br/PAGINA?ref=0 This forces the link to open in…
-
1
votes1
answer74
viewsA: Error with APNS Server using PHP
I ran some tests: Using Xampp 5.6 -> Presented the error reported in the question Using the Mac Console (Native PHP with version 5.5) -> Worked normally Using Xampp 5.5 -> Also worked…
-
1
votes1
answer74
viewsQ: Error with APNS Server using PHP
I created a small APNS Server using PHP, using an older version of Xampp. However when I went to use the push file in a current version, I received the error as per the image: The error line that is…
-
1
votes2
answers2410
viewsQ: Open link to facebook in iOS Safari
Setting: I own an app, which has a link to a particular page on facebook. When the user clicks on the link, it should be directed to the page and load it with Safari. But if you have the Facebook…
-
0
votes2
answers102
viewsA: Problem when displaying image with Uiimageview
Xcode behaved very strangely. But now it worked. I did a direct attribution to the image property of the object. I had tried the same operation and it didn’t work. But now it worked. Note:…
-
0
votes2
answers102
viewsQ: Problem when displaying image with Uiimageview
When displaying image included in project format .png using UIImageView to only display the simulator screen is blank. Code used: UIImage* imagemLocal = [UIImage imageNamed:@"button.png"];…
-
0
votes1
answer181
viewsQ: What’s the best way to store images in an iOS app?
I’m working on an app, and I’ve read several websites and articles about how to store images in Core Data or the app directory. But I wondered what was the best way. I would like to know, what would…
-
1
votes0
answers84
viewsQ: How to create Uisegmentedcontrol customized?
How to create UISegmentedControl customized? My goal is to create a UISegmentedControl , as in the image below:…
-
1
votes1
answer49
viewsQ: How to use Twisted on Mac OSX?
I’m following a tutorial to use Twisted to establish connection to an app. However, when testing the connection to localhost for testing, it seems that it is not responding. I am using the following…
-
0
votes1
answer289
viewsQ: How to collect keyboard when cancel search button is clicked?
How to collect the keyboard when the cancel button is clicked on a Uisearchbar? I tried some methods and even the delegate’s methods, but it didn’t work. I’ll put up an image to be more precise: I…
-
0
votes1
answer63
viewsQ: How to use only one music from iPod app library?
I am creating a simple alarm and would like to know how to "pick up" or "point" to a particular song chosen by the user, which is in your iPod app library. How could I store this note?
-
1
votes1
answer77
viewsA: How to change the size of Google Map View for iOS
For this question I made the following changes to the code: // Criei uma nova posição e novas dimensões CGRect rect = CGRectMake(0, 0, 300, 300); // Create a GMSCameraPosition that tells the map to…
-
0
votes1
answer77
viewsQ: How to change the size of Google Map View for iOS
I’m using the Google Map SDK for iOS in a project, but when using the service by default it covers the entire screen. But I need space to add some buttons on the screen. How can I resize the map…
-
0
votes1
answer73
viewsQ: Aftnetworking on iOS 8.1.1 is having problems?
I recently developed an app that uses Aftnetworking 2.0 and ran tests on my physical device using iPhone 4S iOS 8.0. But customers who are with iOS 8.1.1 can not send the data of a registration.…
-
0
votes1
answer91
viewsA: How to implement APNS server using Easyapns?
Guys, thanks for your help! I gave up using Easyapns because it was giving a lot of trouble, and I made a reuse of the source code of the tutorial site www.raywenderlich.com. For anyone who wants a…
-
-1
votes1
answer635
viewsQ: How to insert timestamp value into a Mysql table?
I am receiving a timestamp value from a request, and would like to store this value in my bank, however I want the column to interpret it correctly. The value is 1416178487. And using the function…
-
1
votes1
answer563
viewsQ: How do I know when the app quits on iOS?
I’m developing an app that sends notification by push, but so that my server does not send notifications to the devices from which my application was uninstalled and does not pollute my server, as I…
-
0
votes1
answer174
viewsA: How to build a simple APNS server with PHP?
I noticed that there was a loss of the last digits of the devicetokens on the server due to the length of the string, so I adjusted the column to a new data length and inserted the device token back…
-
-2
votes1
answer174
viewsQ: How to build a simple APNS server with PHP?
I am creating a small service triggering notifications. I made this code, to make several pushes shots, where the devicetokens come from a server. But I’m finding the following problems: When I…
-
0
votes2
answers14275
viewsA: How to receive an array and print your content using PHP?
Okay, I got what I wanted! Thank you. Below the code: $meuArray = array(); $meuArray []= "A"; $meuArray []= "k"; $meuArray []= "Blan"; for($lop = 0; $lop < count($meuArray);$lop++){ echo…
-
0
votes0
answers155
viewsQ: How to adjust splash using Constraints in Xcode 6?
In Xcode 6 comes a file format . xib that serves as the default splash screen of the App. I inserted an image using Uiimageview and a text using Uilabel but the position of the image and the label…
-
0
votes2
answers14275
viewsQ: How to receive an array and print your content using PHP?
I need to know how to store data from an array in a variable, using the looping below: Data collection: $sql="SELECT `devicetoken` FROM `devicetokensios` ORDER BY `index`"; $resultado =…
-
0
votes0
answers54
viewsQ: How to host the Aerogear?
How to host Aerogear, to create a push notification service. I already have a host for a small project, and would like to know if anyone has used or uses Aerogear and can guide how I can host this…
-
0
votes1
answer547
viewsQ: How to create the certificates and provisioning profile correctly for use of Push Notification?
I need help creating a certificate for provisioning profile correctly to Push Notification. Because I followed several different tutorials, and in all of them I did not succeed. Only in a moment I…
-
0
votes1
answer91
viewsQ: How to implement APNS server using Easyapns?
I’m trying to use Easyapns in a project for iOS 8. But due to the fact that the project is old and there are no updates for it, I’m having problems. More specifically, with respect to the server,…
-
0
votes1
answer226
viewsA: How to resolve this error by returning from web service access?
Yes I found the error, it was because I was coding the receipt, and in fact it was not necessary! I just found it an instability of Afnetworking, which worked one way with the local comic book, and…
-
2
votes2
answers83
viewsQ: How to use/maintain obsolete methods for older versions of iOS?
I’m developing an app for different summers from iOS, in this case for iOS 7 and iOS 8. I’m trying to create the Push Notification service, but the methods to register the app and others, are…
-
0
votes1
answer226
viewsQ: How to resolve this error by returning from web service access?
I’m developing an app that consumes data from a web service and using Afnetworking to make the requisitions. During the testing phase the app worked and received the data normally. So I exported the…
-
0
votes1
answer148
viewsQ: How to control the lines between the main Uitableview and the Uitableview of the Uisearchbar?
I am implementing a table with search field, and I am using UISearchBar. I have two variables in the app: a NSMutableArray for the original data, and other NSMutableArray for the filtered data. When…
-
5
votes1
answer811
viewsQ: How do I implement an Apple APNS push notification service?
I own a web service, and would like to create a Push Notification service for an app using Apple APNS without using the third-party service, as I could do this?
-
0
votes1
answer63
viewsQ: How to use Uisearchbar with data from Core Data?
I’m trying to filter the name of the cells in a table, loaded with data from Core Data, but I’m having a crash. I am using the following code to filter the cell title: -(void)searchBar:(UISearchBar…
-
2
votes2
answers119
viewsA: How to send data to web service using Afnetworking?
ok I was able to do this without using Parameters or having to convert content to JSON. This is what I did, I created a URL complete, and passed to URLString: directly! NSMutableString* urlStrin =…
-
1
votes2
answers119
viewsQ: How to send data to web service using Afnetworking?
I have a form that must be filled in the application and sent to the web service to register a new user. How could I send this data to the web service using Afnetworking 2.0? I tried to use the code…
-
1
votes1
answer181
viewsQ: How do I know the app’s web service is down?
Scenario: The app consumes data from a web service, so that the app does not get "locked" I added the task of downloading the data in a secondary trhead, according to the following code:…
-
0
votes2
answers244
viewsA: How to make a Uitableviewcell work like Facebook Messenger for iOS?
The problem is the LIDO data TYPE in the Core Data. For the guy in Core Data to the LIDO field is STRING and I was making a direct comparison with a INT in the IF(); Wrong code in…
-
0
votes2
answers244
viewsQ: How to make a Uitableviewcell work like Facebook Messenger for iOS?
How to create a UITableView, where cells keep the text bold until touched, and save this change? For example, when we receive a message on Facebook the text on UITableViewCell is in bold, after…
-
1
votes2
answers272
viewsQ: How to perform asynchronous request using JSON?
Scenario, I have a data request using JSON but I would like this request to be performed outside the main thread of the app, so that it does not catch and that the user can perform other operations…
-
0
votes1
answer113
viewsQ: How do you request Core Data to get only one attribute?
I just need to get an attribute from a single row of the table: name | id | idade | aprov|repro| sala | _______|______|________|______|_____|______| John | 32 | 15 | A | | 155 | Following the table…
-
0
votes2
answers1041
viewsA: App rejected because of Advertising Identifier (IDFA)
What happened was: the page I showed in the image was with loading problem, it actually has 3 options and not two. Therefore due to this loading error did not allow to complete the completion of the…
iosanswered Tiago Amaral 1,520 -
0
votes1
answer178
viewsA: How to send and receive data to BD Mysql using PHP in Objective-C?
The solution I found was this! I can send an argument to a php and it returns me the result of the query: // FUNCIONA PODE SER USADO PARA ENVIAR OS ARGUEMENTOS E RECEBER O RETORNO DA QUERY DO PHP…
-
1
votes2
answers213
viewsA: Apple forcing to develop app for iPhone and mandatory for iPad, is that right?
According to Apple although some App’s are not made for iPad, they must maintain minimum compatibility, and offer an auto screen adjustment, so the user can use it problems. Although I am against…
-
1
votes1
answer238
viewsQ: Validate Objective-C field
Setting: When filling out a form, it must be checked if one of the fields has been filled in correctly, containing 6 numbers followed by two initials that are the states of Brazil. This is not email…
-
0
votes1
answer783
viewsQ: Return with different values in JSON / PHP
Scenario: I have a query made in PHP and need to return it to my iOS app in JSON format. But when doing some tests, in the browser, I noticed that when using the function echo…