小编tmi*_*min的帖子

MyApp"有超出允许时间的活动断言"崩溃 - CoreLocationRegistration和CoreLocationBackgroundClient

有没有人对崩溃日志发生的原因有任何见解?该应用程序记录用户所在的位置.因此它在Info.plist中设置了UIBackgroundModes的位置以继续在后台获取位置更新.根据日志,10分钟后似乎崩溃了.

Incident Identifier: 4BA294E8-0DDF-4EC2-812A-20394F758A7F
CrashReporter Key:   59997a4e160853691bc673802439c8c4b9ca7ba3
Hardware Model:      iPhone3,1
Process:         MyMapApp [1234]
Path:            /var/mobile/Applications/826E35FE-F6B7-477E-943E-CE18D0D03145/MyMapApp.app/MyMapApp
Identifier:      MyMapApp
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2011-03-02 13:25:05.228 -0600
OS Version:      iPhone OS 4.2.1 (8C148)
Report Version:  104

Exception Type:  00000020
Exception Codes: 0x8badf00d
Highlighted Thread:  0

Application Specific Information:
MyMapApp[1234] has active assertions beyond permitted time: 
{(
    <SBProcessAssertion: 0x63a07a0> identifier: CoreLocationRegistration process: MyMapApp[1234] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:1234 preventSuspend  preventIdleSleep ,
    <SBProcessAssertion: 0xa095050> identifier: CoreLocationBackgroundClient …
Run Code Online (Sandbox Code Playgroud)

iphone crash core-location

8
推荐指数
1
解决办法
8136
查看次数

材料设计:如何让按钮文本成为常规案例(不是CAPITAL)?

Android Material Design按钮样式将按钮文本设置为"CAPITAL"字母.如何通过string.xml提供的任何情况(非资本,资本)取回文本?

<Button
    android:id="@+id/product_add_button"
    style="?android:attr/buttonBarButtonStyle"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_weight="1"
    android:gravity="center"
    android:onClick="onAddItemButtonClick"
    android:paddingLeft="@dimen/row_padding"
    android:paddingRight="@dimen/row_padding"
    android:text="@string/add_item"
    android:textSize="18sp"
    android:textColor="@color/blueberry" />
Run Code Online (Sandbox Code Playgroud)

string.xml

 <string name="add_item">Add Item</string>
Run Code Online (Sandbox Code Playgroud)

按钮文本大写! 不是我想要的.

android material-design

4
推荐指数
1
解决办法
1596
查看次数

标签 统计

android ×1

core-location ×1

crash ×1

iphone ×1

material-design ×1