Questions tagged [sdcalertview]

Questions about SDCAlertView

SDCAlertView started out as an alert that looked identical to UIAlertView, but had support for a custom content view. With the introduction of UIAlertController in iOS 8, the project was updated to the more modern API that UIAlertController brought.

https://github.com/sberrevoets/SDCAlertView

Features

  • Most UIAlertController functionality
  • Custom content views
  • Preventing controllers from dismissing when the user taps a button
  • Easy presentation/dismissal
  • Attributed title label, message label, and buttons
  • Appearance customization
  • Usable from Swift and Objective-C
  • Understandable button placement
  • UI tests
  • Custom alert behavior
  • CocoaPods/Carthage support
18 questions
7
votes
3 answers

adding a custom view to a alert view

i have a problem like this: i want to show a customized view inside a alert view. so i create a separate xib file and designed my interface.and implemented the class for it too.but when i apply below code,it gives me an error. this is the code : …
Darshana
  • 314
  • 2
  • 4
  • 22
4
votes
1 answer

SDCAlertView callback clickButtonAtIndex not being called at runtime iOS

For some reason the SDCAlertView clickButtonAtIndex callback from the SDCAlertView POD (seen in the code block below) is never being called. The SDCAlertView shows but after I've selected a button on my alert no callback is invoked. Apples alertView…
mickben
  • 385
  • 4
  • 11
2
votes
1 answer

Adding constraints in SDCAlertView

I'm using a the pod SDCAlertView, I need to add an imageView + a textField to my content view, however I am having trouble with my constraints, below is my code. let imageView = UIImageView(frame: CGRectMake(0, 0, 100, 100)) imageView.image =…
Happiehappie
  • 1,084
  • 2
  • 13
  • 26
2
votes
0 answers

SDCAlertView dismissWithClickedButtonIndex: animated: leaves UIView inactive

I'm using the pod of SDCAlertView, found here, to implement a series of alert messages with images and other features. The alerts are centered around audio events (ie. headset inserted or removed) and need to be dismissed sometimes without the alert…
mickben
  • 385
  • 4
  • 11
2
votes
3 answers

Size of UIAlertView

When creating an UIAlertView in code, the frame and bounds aren't calculated, yet. But even in the delegate method willPresentAlertView, there are still just zeros in the CGRects. Is there a way to determine an UIAlertView's size, or - as I only…
dkaisers
  • 824
  • 1
  • 8
  • 15
1
vote
0 answers

(SDCAlertView) Functions in AlertAction handler are not called

I would like to process the value in the textfield of alert controller after users tap an AlertAction (such as a "send button" maybe) on the alert controller without making it dismiss. I knew that the built-in UIAlertController from Apple would…
1
vote
1 answer

Customizing SDCAlertView

I am using the SDCAlertView Cocoapod and am attempting to customize the alertview and actionsheet so that the cornerradius, actionViewSeparatorColor, default textcolor and .Destructive textcolor are changed as seen in these images: image of…
1
vote
1 answer

CustomAlertView buttons not Visible in ios 8

I am using SDCAlertView for custom alertview. It is perfectly working in ios 7 . But in ios8 alertview button are not visible . i am not able find actual problem . Thanks in advance
Kalpesh
  • 5,336
  • 26
  • 41
1
vote
1 answer

Does adding a subview to SDCAlertView work properly on iOS 8?

I had used an instance of SDCAlertView in my project to add a UITextView inside an alert to do some facebook posts.It doesnt seem to work properly anymore on ios8. I had used the following code. SDCAlertView *alert = [[SDCAlertView alloc]…
Mayank Sharma
  • 63
  • 1
  • 6
1
vote
2 answers

Table Inside UIView not scrolling or receiving touches

I'm making app where I use SDCAlertView(https://github.com/Scott90/SDCAlertView) and its contentView property in order to display an UITableView. The problem occurs when I try to scroll through the table. Here is how I allocate the alert: …
virindh
  • 3,775
  • 3
  • 24
  • 49
0
votes
1 answer

How do i prevent my SDCAlertview from dismissing when the user touches around the alert?

How do i set the dismissOnOutsideTapped to false? I am trying to prevent the user from dismissing the AlertController until the Ok button is tapped myView.translatesAutoresizingMaskIntoConstraints =…
0
votes
0 answers

UITableViewCell loading but not displaying

I'm trying to programmatically load a UITableView into a custom AlertController using a vanilla UITableViewCell. The UITableView displays and dataSource methods all get called, but the UITableViewCell does not display. Here is the code: class…
NewEndian
  • 559
  • 2
  • 16
0
votes
1 answer

How do I customize SDCAlertView when using it in an Objective-C class

I am using SDCAlertview in a project, that is being developed in Objective-C, and I would like to be able to set the visual style but I am unable to do so. The only file that I am able to import into any other obj-c class is SDCAlertView-Swift.h and…
Shumais Ul Haq
  • 1,427
  • 1
  • 15
  • 26
0
votes
1 answer

for SDCAlertCortroller - how do I get the width of the view? (whither SDCAlertViewWidth)

I've been using SDCAlertView, and am very happy with it. I recently updated to the latest version, which now has SDCAlertController. In the old way, I need to add some extra views onscreen, but one of them was an extra UILabel. I would create it…
Dan Morrow
  • 4,433
  • 2
  • 31
  • 45
0
votes
2 answers

How to dismiss SDCAlertView with tap gesture?

To show alert I use SDCAlertView(clone of UIAlertView). I want to dismiss alert by tap on screen like UIActionSheet.
ChikabuZ
  • 10,031
  • 5
  • 63
  • 86
1
2