You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# IMPORTANT: There must be *no* managed API differences unless the two first
64
22
# numbers (major.minor) changes.
65
23
66
-
# WARNING: Do **not** use versions higher than the available Xcode SDK or else we will have issues with mtouch (See https://github.com/xamarin/xamarin-macios/issues/7705)
Copy file name to clipboardExpand all lines: Makefile
-15Lines changed: 0 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -20,21 +20,6 @@ world: check-system
20
20
21
21
.PHONY: check-system
22
22
check-system:
23
-
ifdefINCLUDE_MAC
24
-
ifdefINCLUDE_IOS
25
-
@if [[ "x$(IOS_COMMIT_DISTANCE)" != "x$(MAC_COMMIT_DISTANCE)" ]]; then \
26
-
echo "$(COLOR_RED)*** The commit distance for Xamarin.iOS ($(IOS_COMMIT_DISTANCE)) and Xamarin.Mac ($(MAC_COMMIT_DISTANCE)) are different.$(COLOR_CLEAR)"; \
27
-
echo "$(COLOR_RED)*** To fix this problem, bump the revision (the third number) for both $(COLOR_GRAY)IOS_PACKAGE_NUMBER$(COLOR_RED) and $(COLOR_GRAY)MAC_PACKAGE_NUMBER$(COLOR_RED) in Make.versions.$(COLOR_CLEAR)"; \
28
-
echo "$(COLOR_RED)*** Once fixed, you need to commit the changes for them to pass this check.$(COLOR_CLEAR)"; \
echo "$(COLOR_RED)*** The commit distance for Xamarin.iOS ($(IOS_COMMIT_DISTANCE)) and/or Xamarin.Mac ($(MAC_COMMIT_DISTANCE)) are > 999.$(COLOR_CLEAR)"; \
32
-
echo "$(COLOR_RED)*** To fix this problem, bump the revision (the third number) for both $(COLOR_GRAY)IOS_PACKAGE_NUMBER$(COLOR_RED) and $(COLOR_GRAY)MAC_PACKAGE_NUMBER$(COLOR_RED) in Make.versions.$(COLOR_CLEAR)"; \
33
-
echo "$(COLOR_RED)*** Once fixed, you need to commit the changes for them to pass this check.$(COLOR_CLEAR)"; \
Copy file name to clipboardExpand all lines: docs/api/UIKit/UIAlertView.xml
+35-16Lines changed: 35 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,36 +1,55 @@
1
1
<Documentation>
2
2
<DocsDocId="T:UIKit.UIAlertView">
3
-
<summary>A <seecref="T:UIKit.UIView" /> that displays a dialog message with one or more buttons. (As of iOS 8, devs should use <seecref="T:UIKit.UIAlertController" /> rather than this class.)</summary>
3
+
<summary>
4
+
A <seecref="UIView" /> that displays a dialog message with one or more buttons.
5
+
(As of iOS 8, devs should use <seecref="UIAlertController" /> rather than this class.)
6
+
</summary>
4
7
<remarks>
5
-
<para>As of iOS 8, app devs should use <seecref="T:UIKit.UIAlertController" /> rather than this class. Extensions may not use this class at all.</para>
6
8
<para>
7
-
The <seecref="T:UIKit.UIAlertView" /> allows the application user to choose among alternative actions. The following code and image, taken from the "AlertViews" section of the "ios Standard Controls" sample illustrates the simplest use-case:
9
+
As of iOS 8, app devs should use <seecref="UIAlertController" /> rather than this class.
10
+
Extensions may not use this class at all.
11
+
</para>
12
+
<para>
13
+
The <seecref="UIAlertView" /> allows the application user to choose among alternative actions.
14
+
The following code and image, taken from the "AlertViews" section of the "ios Standard Controls"
15
+
sample illustrates the simplest use-case:
8
16
</para>
9
17
<example>
10
18
<codelang="csharp lang-csharp"><![CDATA[
11
-
UIAlertView alert = new UIAlertView () {
12
-
Title = "alert title", Message = "this is a simple alert"
19
+
var alert = new UIAlertView () {
20
+
Title = "alert title",
21
+
Message = "this is a simple alert"
13
22
};
14
-
alert.AddButton("OK");
23
+
alert.AddButton("OK");
15
24
alert.Show ();
16
25
]]></code>
17
26
</example>
18
27
<para>
19
-
<imghref="~/UIKit/_images/UIKit.UIAlertView.png"alt="Screenshot showing the alert view" />
28
+
An alternative to the <seecref="UIAlertView" /> is the <seecref="UIActionSheet" />.
20
29
</para>
21
-
<para>An alternative to the <seecref="T:UIKit.UIAlertView" /> is the <seecref="T:UIKit.UIActionSheet" />.</para>
22
-
<para>The application developer can use <seecref="T:UIKit.UIAlertViewStyle" />s such as <seecref="F:UIKit.UIAlertViewStyle.PlainTextInput" /> or <seecref="F:UIKit.UIAlertViewStyle.LoginAndPasswordInput" /> to allow the application user to enter values.</para>
23
30
<para>
24
-
The Xamarin API supports two styles of event notification: the Objective-C style that uses a delegate class or the C# style using event notifications.
25
-
</para>
31
+
The application developer can use <seecref="UIAlertViewStyle" />s such as <seecref="UIAlertViewStyle.PlainTextInput" />
32
+
or <seecref="UIAlertViewStyle.LoginAndPasswordInput" /> to allow the application user to enter values.
33
+
</para>
34
+
<para>
35
+
The managed API supports two styles of event notification: the Objective-C style that uses a delegate class or the C# style using event notifications.
36
+
</para>
26
37
<para>
27
-
The C# style allows the user to add or remove event handlers at runtime by assigning to the events of properties of this class. Event handlers can be anyone of a method, an anonymous methods or a lambda expression. Using the C# style events or properties will override any manual settings to the Objective-C Delegate or WeakDelegate settings.
28
-
</para>
29
-
<para>The Objective-C style requires the user to create a new class derived from <seecref="T:UIKit.UIAlertViewDelegate" /> class and assign it to the <formattype="text/html"><ahref="https://docs.microsoft.com/en-us/search/index?search=UIKit%20Delegate&scope=Xamarin"title="P:UIKit.Delegate">P:UIKit.Delegate</a></format> property. Alternatively, for low-level control, by creating a class derived from <seecref="T:Foundation.NSObject" /> which has every entry point properly decorated with an [Export] attribute. The instance of this object can then be assigned to the <seecref="P:UIKit.UIAlertView.WeakDelegate" /> property.
38
+
The C# style allows the user to add or remove event handlers at runtime by assigning to the
39
+
events of properties of this class. Event handlers can be anyone of a method, an anonymous method
40
+
or a lambda expression. Using the C# style events or properties will override any manual settings
41
+
to the Objective-C Delegate or WeakDelegate settings.
30
42
</para>
31
-
<blocksubset="none"type="overrides">
43
+
<para>
44
+
The Objective-C style requires the user to create a new class derived from <seecref="UIAlertViewDelegate" />
45
+
class and assign it to the <seecref="Delegate" /> property. Alternatively, for low-level control, by creating
46
+
a class derived from <seecref="NSObject" /> which has every entry point properly decorated with an
47
+
<seecref="ExportAttribute" /> attribute and assigning an instance of this class to the <seecref="WeakDelegate" />
48
+
property.
49
+
</para>
50
+
<para>
32
51
<para>This class should not be subclassed.</para>
33
-
</block>
52
+
</para>
34
53
</remarks>
35
54
<relatedtype="externalDocumentation"href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAlertView_Class/index.html">Apple documentation for <c>UIAlertView</c></related>
0 commit comments