         }
         
         
-        let rustleActionSheet = UIActionSheet(title: title, delegate: nil, cancelButtonTitle: "Cancel", destructiveButtonTitle: nil)
-        rustleActionSheet.actionSheetStyle = UIActionSheetStyle.BlackTranslucent
+        let rustleActionSheet = UIAlertController(title: title, message: nil, preferredStyle:UIAlertControllerStyle.ActionSheet)
         
         var i : Int
         

                    button_title = "\(name) via \(button_title)"
                }
                
                var button = UIButton()
                button.addTarget(self, action: "selected:", forControlEvents: UIControlEvents.TouchDown)
                var frame = CGRectMake(0, CGFloat(i*40 + 10), 160, 40)
                button.frame = frame
                button.tag = i
                button.setTitle("Button \(i)", forState: UIControlState.Normal)
                println("Making button \(i)")
                rustleActionSheet.addButtonWithTitle(button_title)
                rustleActionSheet.addSubview(button)
            }
        }

        rustleActionSheet.bounds = CGRectMake(0, 0, 320, 485)
        rustleActionSheet.showInView(self.view)
        
    }
    
    func addHandlers() {

        //The webview frame is the other 60% of the screen, minus the space that the toolbar takes up
        webView.frame.size.height = self.view.frame.size.height * 0.60 - toolbar.frame.size.height
    }
}





