小编Ort*_*ntz的帖子

UINavigationBar Touch

当用户点击我的一个视图的导航栏标题时,我想触摸一个事件.

我是否可以访问UINavigationBar标题的视图,以便将触摸事件连接到它,我有点不知所措.

这甚至可能吗?

iphone cocoa-touch uinavigationbar uikit ios

21
推荐指数
4
解决办法
2万
查看次数

在应用程序中存储iPhone应用程序设置

我的iPhone应用程序设置很少,用户可能会经常更改.我想知道是否有任何建议的方法来处理这些设置(阅读和保存它们).在Apple网站上,我发现只有一个关于将应用程序设置与设置应用程序(链接)集成的教程,但我不希望用户退出我的应用程序,因此他可以更改选项.

是否有任何默认机制来处理应用程序本身的设置或我是否必须实现自己的解决方案?

iphone settings cocoa-touch user-preferences ios

21
推荐指数
1
解决办法
2万
查看次数

我应该使用merge = union将.pbxproj文件与git合并吗?

我想知道.gitattributes中的merge = union选项是否适用于.pbxproj文件.

该选项的联机帮助页:

对文本文件运行3向文件级别合并,但从两个版本中获取行,而不是留下冲突标记.这往往会以随机顺序在结果文件中保留添加的行,用户应验证结果.

通常,对于将90%的文件添加到项目中的情况,这应该没问题.有没有人有这方面的经验?

git merge cocoa objective-c

20
推荐指数
2
解决办法
8575
查看次数

17
推荐指数
2
解决办法
2万
查看次数

有没有一种简单的方法来编辑/修改UILocalNotification

有没有更简单的方法来编辑,例如,已安排的UILocalNotification的alertBody属性?

现在,我只是取消通知并安排新通知,但当应用程序需要为3个或更多通知执行此操作时,执行需要很长时间...

iphone notifications ios uilocalnotification

16
推荐指数
1
解决办法
3306
查看次数

如何使用UINib实例化和使用自定义UITableViewCells

我将如何使用UINibs在iOS5.0中实例化和使用UITableViewCell作为tableview.我知道有一个registerNib:forCellReuseIdentifier:在iOS5.0中也需要使用,但我不知道如何使用它

在此先感谢任何帮助

iphone cocoa-touch uitableview uikit ios

16
推荐指数
1
解决办法
2万
查看次数

stringWithFormat在LLDB中不起作用

为什么这不起作用?

(lldb) po [NSString stringWithFormat:@"%f", 1.0]
error: too many arguments to method call, expected 1, have 2
error: 1 errors parsing expression
Run Code Online (Sandbox Code Playgroud)

但这样做:

(lldb) p (void)printf("%f", 1.0)
1.000000
Run Code Online (Sandbox Code Playgroud)

LLDB中不支持Objective-C变量参数语法吗?

cocoa objective-c ios lldb

16
推荐指数
1
解决办法
1906
查看次数

模仿UIAlertView Bounce?

什么是模仿iPhone上UIAlertView的弹跳动画的最佳方式?这有一些内置机制吗?UIAlertView本身不适合我的需求.

我查看了动画曲线,但据我所知,他们提供的只有easeIn,easeOut和linear.

iphone cocoa-touch core-animation uikit ios

15
推荐指数
3
解决办法
8882
查看次数

_UIQueuingScrollView抛出的参数异常无效

我的应用程序包含UIPageViewController中嵌入的UITableViewController,不时会引发此异常:

Invalid parameter not satisfying: [views count] == 3
Run Code Online (Sandbox Code Playgroud)

回溯:

* thread #1: tid = 0x6239fa, 0x03d1d88a libobjc.A.dylib`objc_exception_throw, queue = 'com.apple.main-thread, stop reason = breakpoint 25.3
    frame #0: 0x03d1d88a libobjc.A.dylib`objc_exception_throw
    frame #1: 0x0404f448 CoreFoundation`+[NSException raise:format:arguments:] + 136
    frame #2: 0x03428fee Foundation`-[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116
    frame #3: 0x01e7c535 UIKit`-[_UIQueuingScrollView _replaceViews:updatingContents:adjustContentInsets:animated:] + 185
    frame #4: 0x01e800ca UIKit`-[_UIQueuingScrollView _didScrollWithAnimation:force:] + 1231
    frame #5: 0x01e7bb57 UIKit`-[_UIQueuingScrollView _scrollViewAnimationEnded:finished:] + 104
    frame #6: 0x0190583c UIKit`-[UIScrollView(UIScrollViewInternal) animator:stopAnimation:fraction:] + 62
    frame #7: 0x0197096e UIKit`-[UIAnimator stopAnimation:] + 533
    frame …
Run Code Online (Sandbox Code Playgroud)

cocoa-touch uiscrollview uikit ios ios7

15
推荐指数
2
解决办法
8967
查看次数

无法更改UINavigationBar提示颜色

我无法更改导航栏上的提示颜色.我已经尝试了下面的代码viewDidLoad,但没有任何反应.

self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedStringKey.foregroundColor: UIColor.white]
Run Code Online (Sandbox Code Playgroud)

导航栏图像

我错过了什么吗?上面的代码是错的吗?

cocoa-touch uinavigationbar uikit ios swift

15
推荐指数
2
解决办法
3126
查看次数