This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSUuid identifier = UIDevice.CurrentDevice.IdentifierForVendor; | |
https://developer.apple.com/library/ios/documentation/uikit/reference/UIDevice_Class/Reference/UIDevice.html#//apple_ref/occ/instp/UIDevice/identifierForVendor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var person = new ABPerson() | |
{ | |
FirstName = "John", | |
LastName = "Doe" | |
}; | |
NSError error; | |
var ab = ABAddressBook.Create (out error); | |
ab.Add (person); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static string GetCarrierName () { using (var info = new CTTelephonyNetworkInfo ()) { return info.SubscriberCellularProvider.CarrierName; } } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CGContext context = UIGraphics.GetCurrentContext (); | |
context.InterpolationQuality = CGInterpolationQuality.None; | |
context.TranslateCTM (0, newSize.Height); | |
context.ScaleCTM (1f, -1f); | |
context.DrawImage (new RectangleF (0, 0, newSize.Width, newSize.Height), source.CGImage); | |
var scaledImage = UIGraphics.GetImageFromCurrentImageContext(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIView BGViewColor = new UIView (); | |
BGViewColor.BackgroundColor = UIColor.Red; //or whatever color you want. | |
BGViewColor.Layer.MasksToBounds = true; | |
cell.SelectedBackgroundView = BGViewColor; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using MonoTouch.Foundation; | |
using MonoTouch.AVFoundation; | |
using MonoTouch.CoreMedia; | |
namespace TestProject.Common | |
{ | |
public class AudioTrim | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Microsoft.AspNet.SignalR.Client.Resources.resources" was correctly embedded or linked into assembly "Microsoft.AspNet.SignalR.Client.iOS" at compile time, or that all the satellite assemblies required are loadable and fully signed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Here is what I am attempting, opening the file, encoding it (with your EncodeSpeech method) | |
// and trying to save the .spx back to a file. The encodedBytes returns with data but the newly | |
// create file "newFile" does not play. Am I missing something or am I just doing this the wrong | |
// way? Thanks for all your help. | |
string audioFile = @"C:\Users\DannyC\Desktop\newFileName.wav"; | |
string newFile = @"C:\Users\DannyC\Desktop\Test.spx"; | |
// Read file bytes | |
byte[] fileBytes = File.ReadAllBytes (audioFile); |
NewerOlder