- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我在iPhone调试模拟器模式中运行我的应用程序时,它工作得很好。当我在 iPhone 发布模拟器模式中运行我的应用程序时,它崩溃了。
有人知道如何解决这个问题吗?
错误日志:
Terminating runtime due to unhandled exception
Unhandled Exception:
0 IOS_UI 0x0008edfe mono_handle_exception_internal_first_pass + 2190
1 IOS_UI 0x00090842 mono_handle_exception_internal + 1602
2 IOS_UI 0x0009138f mono_handle_exception + 47
3 IOS_UI 0x000d3564 handle_signal_exception + 148
4 ??? 0x0b4b12c1 0x0 + 189469377
at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x00047, 0x00071>
6 IOS_UI 0x00009d92 mono_jit_runtime_invoke + 722
7 IOS_UI 0x0016c50e mono_runtime_invoke + 126
8 IOS_UI 0x0020f156 monotouch_trampoline + 3686
9 UIKit 0x02805817 -[UIViewController loadViewIfRequired] + 536
10 UIKit 0x02805882 -[UIViewController view] + 33
at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (intptr,intptr) <IL 0x0000a, 0x00030>
at MonoTouch.UIKit.UIViewController.get_View () [0x00030] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIViewController.g.cs:976
at IOS_UI.SettingsScreen..ctor (IOS_UI.HomeScreen) <IL 0x00014, 0x00032>
at IOS_UI.HomeScreen.ViewDidLoad () <IL 0x00119, 0x00318>
at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x00047, 0x00071>
16 IOS_UI 0x00009d92 mono_jit_runtime_invoke + 722
17 IOS_UI 0x0016c50e mono_runtime_invoke + 126
18 IOS_UI 0x0020f156 monotouch_trampoline + 3686
19 UIKit 0x02805817 -[UIViewController loadViewIfRequired] + 536
20 UIKit 0x02805882 -[UIViewController view] + 33
21 UIKit 0x02805b2a -[UIViewController contentScrollView] + 36
22 UIKit 0x0281cef5 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 36
23 UIKit 0x0281cfdb -[UINavigationController _layoutViewController:] + 43
24 UIKit 0x0281d286 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 254
25 UIKit 0x0281d381 -[UINavigationController _startTransition:fromViewController:toViewController:] + 72
26 UIKit 0x0281deab -[UINavigationController _startDeferredTransitionIfNeeded:] + 386
27 UIKit 0x0281dfc9 -[UINavigationController _startDeferredTransitionIfNeeded] + 41
28 UIKit 0x0281e055 -[UINavigationController __viewWillLayoutSubviews] + 33
29 UIKit 0x029233ab -[UILayoutContainerView layoutSubviews] + 233
30 UIKit 0x0277492d -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 279
31 libobjc.A.dylib 0x040306b0 -[NSObject performSelector:withObject:] + 70
32 QuartzCore 0x04bb4fc0 -[CALayer layoutSublayers] + 240
33 QuartzCore 0x04ba933c _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 468
34 QuartzCore 0x04bb4eaf -[CALayer layoutIfNeeded] + 166
35 UIKit 0x028138cd -[UIViewController window:setupWithInterfaceOrientation:] + 242
36 UIKit 0x0275c1a6 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 5346
37 UIKit 0x0275acbf -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 82
38 UIKit 0x0275abd9 -[UIWindow _setRotatableViewOrientation:duration:force:] + 89
39 UIKit 0x02759e34 __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke_0 + 224
40 UIKit 0x02759c6e -[UIWindow _updateToInterfaceOrientation:duration:force:] + 209
41 UIKit 0x0275aa29 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 853
42 UIKit 0x0275d922 -[UIWindow setDelegate:] + 351
43 UIKit 0x02807fec -[UIViewController _tryBecomeRootViewControllerInWindow:] + 164
44 UIKit 0x02754bc4 -[UIWindow addRootViewControllerViewIfPossible] + 481
45 UIKit 0x02754dbf -[UIWindow _setHidden:forced:] + 368
46 UIKit 0x02754f55 -[UIWindow _orderFrontWithoutMakingKey] + 49
47 UIKit 0x0275df67 -[UIWindow makeKeyAndVisible] + 65
at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend (intptr,intptr) <IL 0x0000a, 0x0002c>
at MonoTouch.UIKit.UIWindow.MakeKeyAndVisible () [0x00010] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIWindow.g.cs:126
at IOS_UI.AppDelegate.FinishedLaunching (MonoTouch.UIKit.UIApplication,MonoTouch.Foundation.NSDictionary) <IL 0x00050, 0x00134>
at (wrapper runtime-invoke) <Module>.runtime_invoke_bool__this___object_object (object,intptr,intptr,intptr) <IL 0x00059, 0x000a7>
52 IOS_UI 0x00009d92 mono_jit_runtime_invoke + 722
53 IOS_UI 0x0016c50e mono_runtime_invoke + 126
54 IOS_UI 0x0020f156 monotouch_trampoline + 3686
55 UIKit 0x027217b7 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 266
56 UIKit 0x02721da7 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1248
57 UIKit 0x02722fab -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 805
58 UIKit 0x02734315 -[UIApplication handleEvent:withNewEvent:] + 1022
59 UIKit 0x0273524b -[UIApplication sendEvent:] + 85
60 UIKit 0x02726cf8 _UIApplicationHandleEvent + 9874
61 GraphicsServices 0x04d0fdf9 _PurpleEventCallback + 339
62 GraphicsServices 0x04d0fad0 PurpleEventCallback + 46
63 CoreFoundation 0x012b6bf5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
64 CoreFoundation 0x012b6962 __CFRunLoopDoSource1 + 146
65 CoreFoundation 0x012e7bb6 __CFRunLoopRun + 2118
66 CoreFoundation 0x012e6f44 CFRunLoopRunSpecific + 276
67 CoreFoundation 0x012e6e1b CFRunLoopRunInMode + 123
68 UIKit 0x027227da -[UIApplication _run] + 774
69 UIKit 0x0272465c UIApplicationMain + 1211
at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x00056, 0x000a4>
at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
at IOS_UI.Application.Main (string[]) <IL 0x00007, 0x00018>
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00049, 0x00077>
74 IOS_UI 0x00009d92 mono_jit_runtime_invoke + 722
75 IOS_UI 0x0016c50e mono_runtime_invoke + 126
76 IOS_UI 0x00170704 mono_runtime_exec_main + 420
77 IOS_UI 0x00175af5 mono_runtime_run_main + 725
78 IOS_UI 0x00067275 mono_jit_exec + 149
79 IOS_UI 0x0020440d main + 2013
80 IOS_UI 0x00002dc5 start + 53
81 ??? 0x00000004 0x0 + 4
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
at IOS_UI.SettingsScreen.ViewDidLoad () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:IntPtr_objc_msgSendSuper (intptr,intptr)
at MonoTouch.UIKit.UIViewController.get_View () [0x00030] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIViewController.g.cs:976
at IOS_UI.SettingsScreen..ctor (IOS_UI.HomeScreen lastScreen) [0x00000] in <filename unknown>:0
at IOS_UI.HomeScreen.ViewDidLoad () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSend (intptr,intptr)
at MonoTouch.UIKit.UIWindow.MakeKeyAndVisible () [0x00010] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIWindow.g.cs:126
at IOS_UI.AppDelegate.FinishedLaunching (MonoTouch.UIKit.UIApplication app, MonoTouch.Foundation.NSDictionary options) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
at IOS_UI.Application.Main (System.String[] args) [0x00000] in <filename unknown>:0
Stacktrace:
Native stacktrace:
0 IOS_UI 0x000916bc mono_handle_native_sigsegv + 284
1 IOS_UI 0x000d778d sigabrt_signal_handler + 109
2 libsystem_c.dylib 0x9ac1c59b _sigtramp + 43
3 ??? 0xffffffff 0x0 + 4294967295
4 libsystem_sim_c.dylib 0x041e057b abort + 140
5 IOS_UI 0x001ea4cd monoeg_g_logv + 157
6 IOS_UI 0x001ea4fb monoeg_assertion_message + 43
7 IOS_UI 0x00215ecf monotouch_unhandled_exception_handler + 159
8 IOS_UI 0x0008d24c mono_invoke_unhandled_exception_hook + 140
9 IOS_UI 0x0009123a mono_handle_exception_internal + 4154
10 IOS_UI 0x0009138f mono_handle_exception + 47
11 IOS_UI 0x000d3564 handle_signal_exception + 148
12 ??? 0x0b4b12c1 0x0 + 189469377
13 ??? 0x0b4de3c9 0x0 + 189653961
14 IOS_UI 0x00009d92 mono_jit_runtime_invoke + 722
15 IOS_UI 0x0016c50e mono_runtime_invoke + 126
16 IOS_UI 0x0020f156 monotouch_trampoline + 3686
17 UIKit 0x02805817 -[UIViewController loadViewIfRequired] + 536
18 UIKit 0x02805882 -[UIViewController view] + 33
19 ??? 0x0cfc5ba0 0x0 + 217865120
20 ??? 0x170de330 0x0 + 386786096
21 ??? 0x170df712 0x0 + 386791186
22 ??? 0x170de1b0 0x0 + 386785712
23 ??? 0x0b4de3c9 0x0 + 189653961
24 IOS_UI 0x00009d92 mono_jit_runtime_invoke + 722
25 IOS_UI 0x0016c50e mono_runtime_invoke + 126
26 IOS_UI 0x0020f156 monotouch_trampoline + 3686
27 UIKit 0x02805817 -[UIViewController loadViewIfRequired] + 536
28 UIKit 0x02805882 -[UIViewController view] + 33
29 UIKit 0x02805b2a -[UIViewController contentScrollView] + 36
30 UIKit 0x0281cef5 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 36
31 UIKit 0x0281cfdb -[UINavigationController _layoutViewController:] + 43
32 UIKit 0x0281d286 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 254
33 UIKit 0x0281d381 -[UINavigationController _startTransition:fromViewController:toViewController:] + 72
34 UIKit 0x0281deab -[UINavigationController _startDeferredTransitionIfNeeded:] + 386
35 UIKit 0x0281dfc9 -[UINavigationController _startDeferredTransitionIfNeeded] + 41
36 UIKit 0x0281e055 -[UINavigationController __viewWillLayoutSubviews] + 33
37 UIKit 0x029233ab -[UILayoutContainerView layoutSubviews] + 233
38 UIKit 0x0277492d -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 279
39 libobjc.A.dylib 0x040306b0 -[NSObject performSelector:withObject:] + 70
40 QuartzCore 0x04bb4fc0 -[CALayer layoutSublayers] + 240
41 QuartzCore 0x04ba933c _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 468
42 QuartzCore 0x04bb4eaf -[CALayer layoutIfNeeded] + 166
43 UIKit 0x028138cd -[UIViewController window:setupWithInterfaceOrientation:] + 242
44 UIKit 0x0275c1a6 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 5346
45 UIKit 0x0275acbf -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 82
46 UIKit 0x0275abd9 -[UIWindow _setRotatableViewOrientation:duration:force:] + 89
47 UIKit 0x02759e34 __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke_0 + 224
48 UIKit 0x02759c6e -[UIWindow _updateToInterfaceOrientation:duration:force:] + 209
49 UIKit 0x0275aa29 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 853
50 UIKit 0x0275d922 -[UIWindow setDelegate:] + 351
51 UIKit 0x02807fec -[UIViewController _tryBecomeRootViewControllerInWindow:] + 164
52 UIKit 0x02754bc4 -[UIWindow addRootViewControllerViewIfPossible] + 481
53 UIKit 0x02754dbf -[UIWindow _setHidden:forced:] + 368
54 UIKit 0x02754f55 -[UIWindow _orderFrontWithoutMakingKey] + 49
55 UIKit 0x0275df67 -[UIWindow makeKeyAndVisible] + 65
56 ??? 0x0cfc8424 0x0 + 217875492
57 ??? 0x170dd264 0x0 + 386781796
58 ??? 0x0cfc772c 0x0 + 217872172
59 ??? 0x0cfc7827 0x0 + 217872423
60 IOS_UI 0x00009d92 mono_jit_runtime_invoke + 722
61 IOS_UI 0x0016c50e mono_runtime_invoke + 126
62 IOS_UI 0x0020f156 monotouch_trampoline + 3686
63 UIKit 0x027217b7 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 266
64 UIKit 0x02721da7 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1248
65 UIKit 0x02722fab -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 805
66 UIKit 0x02734315 -[UIApplication handleEvent:withNewEvent:] + 1022
67 UIKit 0x0273524b -[UIApplication sendEvent:] + 85
68 UIKit 0x02726cf8 _UIApplicationHandleEvent + 9874
69 GraphicsServices 0x04d0fdf9 _PurpleEventCallback + 339
70 GraphicsServices 0x04d0fad0 PurpleEventCallback + 46
71 CoreFoundation 0x012b6bf5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
72 CoreFoundation 0x012b6962 __CFRunLoopDoSource1 + 146
73 CoreFoundation 0x012e7bb6 __CFRunLoopRun + 2118
74 CoreFoundation 0x012e6f44 CFRunLoopRunSpecific + 276
75 CoreFoundation 0x012e6e1b CFRunLoopRunInMode + 123
76 UIKit 0x027227da -[UIApplication _run] + 774
77 UIKit 0x0272465c UIApplicationMain + 1211
78 ??? 0x0cfc4bf4 0x0 + 217861108
79 ??? 0x0cfc3358 0x0 + 217854808
80 ??? 0x0cfc2b58 0x0 + 217852760
81 ??? 0x0cfc2be7 0x0 + 217852903
82 IOS_UI 0x00009d92 mono_jit_runtime_invoke + 722
83 IOS_UI 0x0016c50e mono_runtime_invoke + 126
84 IOS_UI 0x00170704 mono_runtime_exec_main + 420
85 IOS_UI 0x00175af5 mono_runtime_run_main + 725
86 IOS_UI 0x00067275 mono_jit_exec + 149
87 IOS_UI 0x0020440d main + 2013
88 IOS_UI 0x00002dc5 start + 53
89 ??? 0x00000004 0x0 + 4
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
源SettingScreen.cs
public partial class SettingsScreen : UIViewController
{
private string username;
private string password;
public event EventHandler CancelEvent;
private LoginValidator loginValidator;
private static string loginStatus;
private static Boolean booleanCredentialsCheck;
private int settingAlreadyStarted;
public SettingsScreen () : base ("SettingsScreen", null)
{
try {
this.View.BackgroundColor = UIColor.FromPatternImage (UIImage.FromFile ("ImageResource/Loginscreen/Background/achtergrond.png"));
settingAlreadyStarted = NSUserDefaults.StandardUserDefaults.IntForKey ("settingAlreadyStarted");
loginValidator = new LoginValidator ();
textfieldPassword.SecureTextEntry = true;
string encryptedPassword = NSUserDefaults.StandardUserDefaults.StringForKey ("settingPassword");
if (encryptedPassword != null) {
string decryptedPassword = Encrypter.Decrypt (encryptedPassword);
textfieldPassword.Text = decryptedPassword;
}
textfieldUsername.Text = NSUserDefaults.StandardUserDefaults.StringForKey ("settingUsername");
labelLoginStatus.Text = loginStatus;
} catch (Exception ex){
Console.WriteLine ("ERROR SettingsScreen");
}
}
public override void DidReceiveMemoryWarning ()
{
base.DidReceiveMemoryWarning ();
}
public override void ViewDidLoad ()
{
imageviewPopup.Image = UIImage.FromFile("ImageResource/Loginscreen/Popup/popup.png");
buttonLogin.TouchUpInside += Login;
buttonCancel.TouchUpInside += Cancel;
//Delegate voor done button van keyboard
CloseSettingsTextfieldDelegate closeSettingsTextfieldDelegate = new CloseSettingsTextfieldDelegate(this);
textfieldUsername.Delegate = closeSettingsTextfieldDelegate;
textfieldPassword.Delegate = closeSettingsTextfieldDelegate;
base.ViewDidLoad ();
}
public override void ViewDidUnload ()
{
base.ViewDidUnload ();
// Clear any references to subviews of the main view in order to
// allow the Garbage Collector to collect them sooner.
//
// e.g. myOutlet.Dispose (); myOutlet = null;
ReleaseDesignerOutlets ();
}
public override bool ShouldAutorotateToInterfaceOrientation (UIInterfaceOrientation toInterfaceOrientation)
{
// Return true for supported orientations
return (toInterfaceOrientation != UIInterfaceOrientation.PortraitUpsideDown);
}
void Login (object sender, EventArgs e)
{
try {
string plainPassword = textfieldPassword.Text;
string domainAndUsername = textfieldUsername.Text;
if (domainAndUsername.Length > 4) {
string domain = domainAndUsername.Substring (0, 4);
string username = domainAndUsername.Substring (5);
if (username == null || plainPassword == null) {
loginStatus = "Niet alle velden ingevuld!";
labelLoginStatus.Text = loginStatus;
var alertLegeVelden = new UIAlertView ("Mislukt!", "Niet alle velden zijn ingevuld", null, "OK");
alertLegeVelden.Show ();
} else {
booleanCredentialsCheck = loginValidator.ValidateLogin (username, plainPassword, domain);
Console.WriteLine (booleanCredentialsCheck);
if (booleanCredentialsCheck == true) {
NSUserDefaults.StandardUserDefaults.SetString (domainAndUsername, "settingUsername");
string encryptedPassword = Encrypter.Encrypt(plainPassword);
NSUserDefaults.StandardUserDefaults.SetString (encryptedPassword, "settingPassword");
loginStatus = "Logingegevens correct";
labelLoginStatus.Text = loginStatus;
var alertSuccess = new UIAlertView ("Gelukt!", "Inloggegevens zijn correct", null, "OK");
alertSuccess.Show ();
if (settingAlreadyStarted.Equals (0)) { // Check eerste keer gestart?
NSUserDefaults.StandardUserDefaults.SetInt(1, "settingAlreadyStarted"); //Verander value van setting zodat iPhone weet dat app al eens gestart is.
}
if (CancelEvent != null) { //Sluit settings scherm
CancelEvent(this, EventArgs.Empty);
}
} else {
loginStatus = "Logingegevens foutief";
labelLoginStatus.Text = loginStatus;
var alertFail = new UIAlertView ("Mislukt!", "Inloggegevens zijn foutief", null, "OK");
alertFail.Show ();
}
}
} else {
Console.WriteLine ("Te weinig username karakters");
loginStatus = "Logingegevens foutief";
labelLoginStatus.Text = loginStatus;
var alertFailUsernameDomain = new UIAlertView ("Mislukt!", "Domein of username foutief ingevuld", null, "OK");
alertFailUsernameDomain.Show ();
}
} catch {
var alertFailUsernameDomain = new UIAlertView ("Mislukt!", "Domein of username foutief ingevuld", null, "OK");
alertFailUsernameDomain.Show ();
}
}
void Cancel (object sender, EventArgs e)
{
if (settingAlreadyStarted.Equals (0)) { // Bij eerste keer dat app wordt gestart. //Moet uiteindelijk uit setting gelezen worden.
Console.WriteLine("Annuleren niet toegestaan bij eerste keer starten app");
var alertCannotCancel = new UIAlertView ("Mislukt", "Er dient te worden ingelogd om gebruik te kunnen maken van de app", null, "OK");
alertCannotCancel.Show ();
} else {
if (CancelEvent != null) {
CancelEvent(this, EventArgs.Empty);
}
}
}
}
public class CloseSettingsTextfieldDelegate : UITextFieldDelegate{
private SettingsScreen controller;
public CloseSettingsTextfieldDelegate(SettingsScreen settingsScreen)
{
controller = settingsScreen;
}
public override bool ShouldReturn (UITextField textField)
{
textField.ResignFirstResponder();
return false;
}
}
打开我的应用程序的设置时,我还注意到一个奇怪的事情:设置 -> 应用程序:
它显示了很多调试设置(100+)
什么可能导致这种情况?
最佳答案
如果在此位置发生 NullReferenceException
,则意味着一个(或多个)字段为 null
。由于它不会发生在调试上,因此您将无法使用调试器,但您应该能够通过在应用程序中添加一些Console.WriteLine
来验证这一点。例如
public override void ViewDidLoad ()
{
if (imageviewPopup == null) Console.WriteLine ("uho, no imageviewPopup");
imageviewPopup.Image = UIImage.FromFile("ImageResource/Loginscreen/Popup/popup.png");
if (buttonLogin == null) Console.WriteLine ("uho, no buttonLogin");
buttonLogin.TouchUpInside += Login;
if (buttonCancel == null) Console.WriteLine ("uho, no buttonCancel");
buttonCancel.TouchUpInside += Cancel;
...
确认后,您应该查看您的 NIB 文件,以及是否有任何与调试和发布构建不同的项目选项。
I also noticed a strange thing when opening the settings of my app: Settings -> App: It shows a lot of Debug settings (100+). What could cause this?
这是 MonoTouch 中的一个错误,最近已修复(每次构建时条目都会重复)。这仅发生在调试版本中,不会影响您的应用程序。
关于iphone - 在 Iphone Release 模拟器中启动时应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14509533/
我需要将文本放在 中在一个 Div 中,在另一个 Div 中,在另一个 Div 中。所以这是它的样子: #document Change PIN
奇怪的事情发生了。 我有一个基本的 html 代码。 html,头部, body 。(因为我收到了一些反对票,这里是完整的代码) 这是我的CSS: html { backgroun
我正在尝试将 Assets 中的一组图像加载到 UICollectionview 中存在的 ImageView 中,但每当我运行应用程序时它都会显示错误。而且也没有显示图像。 我在ViewDidLoa
我需要根据带参数的 perl 脚本的输出更改一些环境变量。在 tcsh 中,我可以使用别名命令来评估 perl 脚本的输出。 tcsh: alias setsdk 'eval `/localhome/
我使用 Windows 身份验证创建了一个新的 Blazor(服务器端)应用程序,并使用 IIS Express 运行它。它将显示一条消息“Hello Domain\User!”来自右上方的以下 Ra
这是我的方法 void login(Event event);我想知道 Kotlin 中应该如何 最佳答案 在 Kotlin 中通配符运算符是 * 。它指示编译器它是未知的,但一旦知道,就不会有其他类
看下面的代码 for story in book if story.title.length < 140 - var story
我正在尝试用 C 语言学习字符串处理。我写了一个程序,它存储了一些音乐轨道,并帮助用户检查他/她想到的歌曲是否存在于存储的轨道中。这是通过要求用户输入一串字符来完成的。然后程序使用 strstr()
我正在学习 sscanf 并遇到如下格式字符串: sscanf("%[^:]:%[^*=]%*[*=]%n",a,b,&c); 我理解 %[^:] 部分意味着扫描直到遇到 ':' 并将其分配给 a。:
def char_check(x,y): if (str(x) in y or x.find(y) > -1) or (str(y) in x or y.find(x) > -1):
我有一种情况,我想将文本文件中的现有行包含到一个新 block 中。 line 1 line 2 line in block line 3 line 4 应该变成 line 1 line 2 line
我有一个新项目,我正在尝试设置 Django 调试工具栏。首先,我尝试了快速设置,它只涉及将 'debug_toolbar' 添加到我的已安装应用程序列表中。有了这个,当我转到我的根 URL 时,调试
在 Matlab 中,如果我有一个函数 f,例如签名是 f(a,b,c),我可以创建一个只有一个变量 b 的函数,它将使用固定的 a=a1 和 c=c1 调用 f: g = @(b) f(a1, b,
我不明白为什么 ForEach 中的元素之间有多余的垂直间距在 VStack 里面在 ScrollView 里面使用 GeometryReader 时渲染自定义水平分隔线。 Scrol
我想知道,是否有关于何时使用 session 和 cookie 的指南或最佳实践? 什么应该和什么不应该存储在其中?谢谢! 最佳答案 这些文档很好地了解了 session cookie 的安全问题以及
我在 scipy/numpy 中有一个 Nx3 矩阵,我想用它制作一个 3 维条形图,其中 X 轴和 Y 轴由矩阵的第一列和第二列的值、高度确定每个条形的 是矩阵中的第三列,条形的数量由 N 确定。
假设我用两种不同的方式初始化信号量 sem_init(&randomsem,0,1) sem_init(&randomsem,0,0) 现在, sem_wait(&randomsem) 在这两种情况下
我怀疑该值如何存储在“WORD”中,因为 PStr 包含实际输出。? 既然Pstr中存储的是小写到大写的字母,那么在printf中如何将其给出为“WORD”。有人可以吗?解释一下? #include
我有一个 3x3 数组: var my_array = [[0,1,2], [3,4,5], [6,7,8]]; 并想获得它的第一个 2
我意识到您可以使用如下方式轻松检查焦点: var hasFocus = true; $(window).blur(function(){ hasFocus = false; }); $(win
我是一名优秀的程序员,十分优秀!