Skip to content

Instantly share code, notes, and snippets.

var resultString = ""
for eachDay in mArray {
// make "day" header from first Event in eachDay
let dHeader = dayHeaderFromEvent(eachDay[0])
// append to string
resultString += dHeader
for index in dayArray {
let tmpObject = index
}
mediastreamvalidator -d iphone http://msv-inserter-440707102.us-east-1.elb.amazonaws.com:8180/cdn/linear/espn/index.m3u8
mediastreamvalidator: Version 1.2(160525)
[/cdn/linear/espn/index.m3u8] Started root playlist download
[/cdn/linear/espn/index.m3u8] Started media playlist download
[/cdn/linear/espn/index.m3u8] All media files delivered, waiting until next playlist fetch
[/cdn/linear/espn/index.m3u8] All media files delivered, waiting until next playlist fetch
[/cdn/linear/espn/index.m3u8] All media files delivered, waiting until next playlist fetch
[/cdn/linear/espn/index.m3u8] All media files delivered, waiting until next playlist fetch
case "record":
self.flagAutoRecord = true
if let tabBarController = self.window!.rootViewController as? UITabBarController {
if tabBarController.selectedIndex == 2 {
let vc = tabBarController.selectedViewController as! DictateViewController
vc.performSelector(#selector(DictateViewController.buttonMic(_:)), withObject: nil, afterDelay: 0.1)
func shareCell (actionType:String, img:UIImage) {
switch (actionType){
case "textImage":
let objectsToShare = [img]
let activityVC = UIActivityViewController(
activityItems: objectsToShare,
// in Today2ViewController...
// add this func....
func shareEvent(event:EKEvent) -> Void {
let cView = ShareEventView.init(frame: CGRect(x: 0, y: 0, width: 600, height: 200))
cView.lblDate.text = "Your format.... \(event.startDate)"
cView.lblTitle.text = event.title
cView.lblOther.text = event.calendar.title
Parse the string (typed or voice-dictated)
Is it a Phone Call?
Yes, start the call and quit doing anything else
Is it a Text?
Yes, launch Message editor and quit doing anything else
@IBAction func buttonCalendar(sender: AnyObject) {
guard let bbItem = sender as? UIBarButtonItem else { return }
// instantiate the popover menu view controller
let vc = PopMenuTableViewController()
// set the desired size and background color
vc.preferredContentSize = CGSize(width: 140, height: 180)
//
// RoundedUIView.h
// TmpRoundable
//
// Created by Don Mag on 2/1/17.
// Copyright © 2017 DonMag. All rights reserved.
//
#import <UIKit/UIKit.h>
self.layer.cornerRadius = 16.0f;
self.layer.shadowColor = [UIColor darkGrayColor].CGColor;
self.layer.shadowOffset = CGSizeMake(4,4);
self.layer.shadowOpacity = 0.9;