|
|
Hi,
I have created an app in iOS and have called a WebService from the same. But that I have developed using Objective C.
I want to call a web service from iOS using Swift.
Any help will be appreciated.
Regards,
Mbatra
|
|
|
|
|
I already responded to your original of this question, just below. Please do not repost.
|
|
|
|
|
Hi,
I am working on an app created in iOS. I want to call jSON web service from the app, parse jSON and print the result in the respective fields (labels in ViewController).
I have got the links for the same but I don't know how to implement the same in step by step.
Any help will be appreciated.
Regards,
Mba
|
|
|
|
|
|
Where can i use nsnotificationcenter and how it works in ios coding????
|
|
|
|
|
|
hello.
i've had success using python in creating a multipart http post upload of a pdf file to a web service, however, i'm having a challenge achieving the same outcome with objectivec
i'm using xcode 7.3 / iOS target version 9.3.
when i look at the encoded file data within the python multipart POST it looks like the below.
what would be the best process to load a PDF file from an IOS device and encode to UTF8 and submit an HTTP Multipart POST?
the method i've crated is also listed below, however, the encoded file data does seem to be correct.
<pre lang="objc">- (void)submitPackageJSONv4:(NSDictionary*)json document:(NSData*)document {
NSString *boundary = @"unique-consistent-string";
NSString *contentType = [NSString stringWithFormat:@"multipart/form-data; boundary=%@", boundary];
NSMutableURLRequest *request =
[[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://sandbox.esignlive.com/api/packages"]];
[request setHTTPMethod:@"POST"];
[request setValue:@"Basic enVyZ1A3Y.........eW94b0U4Tw==" forHTTPHeaderField: @"Authorization"];
[request setValue:@"gzip, deflate" forHTTPHeaderField: @"Accept-Encoding"];
[request setValue:@"*/*" forHTTPHeaderField: @"Accept"];
[request setValue:@"keep-alive" forHTTPHeaderField: @"Connection"];
[request setValue:@"chunked" forHTTPHeaderField: @"Transfer-Encodinge"];
[request setValue:contentType forHTTPHeaderField: @"Content-Type"];
NSMutableData *body = [NSMutableData data];
[body appendData:[[NSString stringWithFormat:@"--%@\r\n", boundary] dataUsingEncoding:NSUTF8StringEncoding]];
[body appendData:[[NSString stringWithFormat:@"%@\r\n", @"Content-Disposition: form-data; name='payload'"]
dataUsingEncoding:NSUTF8StringEncoding]];
[body appendData:[NSKeyedArchiver archivedDataWithRootObject:json]];
[body appendData:[[NSString stringWithFormat:@"--%@\r\n", boundary] dataUsingEncoding:NSASCIIStringEncoding]];
[body appendData:[[NSString stringWithFormat:@"%@\r\n", @"Content-Disposition: form-data; name='file'; filename='file'"]
dataUsingEncoding:NSUTF8StringEncoding]];
[body appendData:document];
[body appendData:[[NSString stringWithFormat:@"--%@--\r\n", boundary] dataUsingEncoding:NSUTF8StringEncoding]];
[request setHTTPBody:body];
NSString *postLength = [NSString stringWithFormat:@"%lu", (unsigned long)[body length]];
[request setValue:postLength forHTTPHeaderField:@"Content-Length"];
[NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue currentQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
NSLog(@"%@", error.description);
if(data.length > 0)
{
}
}];
}
i've tried, if feels like, almost everthing without success.
any assistance would be greatly appreciated.
Content-Disposition: form-data; name="file"; filename="file"
%PDF-1.3
%���������
4 0 obj
<< /Length 5 0 R /Filter /FlateDecode >>
stream
x+TT(T0P0��32544R0bscS=Ks��T�p�<��Ԣ�Ԃ�����L�z�" �+D������k���4:
|
|
|
|
|
What are the hot 2016 frameworks for making simple animations for iOS now? I'm quite familar with XCode and SWIFT but I suppose this is not my only choice - Xamarin?
Michael Pauli
|
|
|
|
|
|
Hi,
I would like to write a small app that acts as a front end to FaceTime on an iPad. It would limit the user to calling a single pre-configured number, so the iPad could be used as a dedicated communication terminal in a small remote sales location. My searches so far have not been positive. Is this possible?
Sarcasm - it's not just a verbal skill - it's a lifestyle!
|
|
|
|
|
|
yeah man
|
|
|
|
|
I want to use Google map speech navigation in my app. But i am not able to find out anything regarding that. I checked out many thing in google but none provide me the thing i require. Is their anyway i can use google map speech navigation in iOS without Google map Application in device. I need to use navigation in my app only not in google map.
Thanks in advance friends
|
|
|
|
|
Have you tried using google to search for this??
I did a quick google search "google speech api ios" and came up with several hits for things I would start with in implementing an app like this.
In fact in the top results I found a sample app from http://www.raywenderlich.com/[^] about doing speech recognition in an app.
|
|
|
|
|
How to Convert UIView to PDF format in objective c.
|
|
|
|
|
By writing some code which captures the data from the view and reformats it as PDF. Google will be the place to start your research.
|
|
|
|
|
Member 11631711 wrote: Convert UIView to PDF
A large part of this will of course depend on the content of UIView and what exactly you are trying to achieve. To better help you might want to improve your question with an example of what you are doing and where you are stuck.
If you just need to get started then maybe the following will help:
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKitFunctionReference/[^]
You will want to look at the section for PDF Creation.
|
|
|
|
|
Hi,
We are using Push Sharp library in VB .Net for sending notifications to iOS device but we arent able to receive notifications on our device.
Code is included below. We have checked the handshake using openSSL and thats also working properly. Please let us know whats wrong in the code.
-------
Imports System.Data.SqlClient
Imports System.Data
Imports System.Linq
Imports System.Web
Imports System.Net.Security
Imports PushSharp
Imports PushSharp.Apple
Imports System.Security.Authentication
Imports System.Net.Sockets
Imports System.Security.Cryptography.X509Certificates
Imports System.Configuration
Imports Newtonsoft.Json
Imports System.IO
Imports System.Collections.Generic
Imports System.Net
Imports PushSharp.Core
Partial Class mobile_app_notification_list
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
Dim push As New PushBroker()
push = New PushBroker()
Dim cert As New ApplePushChannelSettings(True, File.ReadAllBytes(String.Format("C:\Websites\mobileapp.sanjeevkapoor.com\PushAppSanjeev.p12")), "pass@123")
Dim settings As New PushServiceSettings()
settings.AutoScaleChannels = False
settings.Channels = 3
settings.MaxAutoScaleChannels = 3
push.RegisterAppleService(cert, settings)
push.QueueNotification(New AppleNotification().ForDeviceToken("6d9471a58384af100a0b854ec907729efb6c5334e4c26822e97eaccc6d48313d").WithAlert("Hello World!").WithBadge(1).WithSound("default"))
'push.StopAllServices(True)
Response.Write("notification sent successfully")
Catch ex As Exception
Response.Write(ex.Message)
End Try
End Sub
-------
|
|
|
|
|
This question would probably be better answered on the Visual Basic forum.
http://www.codeproject.com/Forums/1646/Visual-Basic.aspx[^]
As just a note though you still have to have an app that will consume and deal with those notifications. Have you checked the app to make sure that you have it configured and coded properly to received the notifications?
|
|
|
|
|
Hi admin,
Can I share my iOS apps promotion codes in this platform?
|
|
|
|
|
I want to awitch technology from dotnet to IOS .Can anyone give me information about IOS field and its markiting scope.and how i get start
|
|
|
|
|
|
To switch to iOS you'll want to start with https://developer.apple.com/[^]
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hey I am working on iPhone application and it is in two languages Danish and English. So I need to translate my SQL Server database(data) into English (currently it's in Danish) Language. so there are any solution to translate my data.
I am stored my data in one NSMutableArray.
Please give replay if any one know...
SQLServer iPhone
|
|
|
|