小编Hâl*_*maz的帖子

Windows 8的WebClient替代方案?

WebClient用来获取Windows Phone 8和Android HttpClient的Yahoo数据我可以使用WebClient

 WebClient client = new WebClient();
   client.DownloadStringCompleted += new     DownloadStringCompletedEventHandler(client_DownloadStringCompleted);
    client.DownloadStringAsync(url);
Run Code Online (Sandbox Code Playgroud)

发送事件后;

   StringReader stream = new StringReader(e.Result)

   XmlReader reader = XmlReader.Create(stream);
   reader.ReadToFollowing("yweather:atmosphere");
   string humidty = reader.MoveToAttribute("humidity");
Run Code Online (Sandbox Code Playgroud)

但是在Windows 8 RT中没有这样的东西.

我该如何获取以下数据?> http://weather.yahooapis.com/forecastrss?w=2343732&u=c

c# windows webclient

5
推荐指数
1
解决办法
5268
查看次数

使用monotouch获取IPAD 2的Mac地址

  foreach (var netInterface in NetworkInterface.GetAllNetworkInterfaces()) 
  {

     if (netInterface.NetworkInterfaceType == NetworkInterfaceType.Wireless80211) 
      {
       var address = netInterface.GetPhysicalAddress();
       string c=  BitConverter.ToString(address.GetAddressBytes());

        }
 }
Run Code Online (Sandbox Code Playgroud)

我的iPad显示像020000000输出,但我的模拟器显示正确,有问题吗?

c# macos xamarin.ios ios

1
推荐指数
1
解决办法
341
查看次数

解析ZXING条形码的结果数据

如果我读了这个QRCode,使用ZXING条形码组件我得到这个VCARD:

1:在此输入图像描述

BEGIN:VCARD
VERSION:3.0
N:haluk
ORG:test
TITLE:12345
TEL:55533344121
END:VCARD
Run Code Online (Sandbox Code Playgroud)

我只需要N和ORG值,是否可以解析它?

c# barcode-scanner xamarin.ios xamarin

0
推荐指数
1
解决办法
1111
查看次数

将 UIImage 转换为 Stream

我正在使用好友 sdk

此示例告诉我如何添加个人资料图片,我尝试了各种方法,但是当我尝试使用此代码时

client.CreateUserAsync("username","password").ContinueWith(r => { var user = r.Result;

// upload a profile photo
Stream photoStream = GetSomePhoto();
user.AddProfilePhotoAsync(photoStream);
});
Run Code Online (Sandbox Code Playgroud)

这是我的代码,但它给了我数组问题

    var img = loginImagePicker.Image.AsPNG().AsStream(); 
    var hu = await user.AddProfilePhotoAsync(img);
Run Code Online (Sandbox Code Playgroud)

这就是问题

在此处输入图片说明

有什么建议吗?

c# stream uiimage xamarin.ios ios

0
推荐指数
1
解决办法
3374
查看次数

标签 统计

c# ×4

xamarin.ios ×3

ios ×2

barcode-scanner ×1

macos ×1

stream ×1

uiimage ×1

webclient ×1

windows ×1

xamarin ×1