小编Vee*_*eru的帖子

XCode 4.3.2,在模拟器上运行的问题

我最近在更新后遇到了xcode 4.3.2这个奇怪的问题.

在模拟器上成功构建和运行几次之后,xcode似乎无法连接到模拟器,甚至无法停止项目; 就像模拟器不存在一样.我试过了:

  1. 停止项目 - 不起作用.
  2. 退出模拟器 - 不起作用,即使我退出模拟器,xcode仍然显示它正在模拟器上运行.
  3. 清洁项目 - 不起作用.

我必须强制退出xcode以使其与模拟器通信.没有别的办法.每半小时做一次非常令人沮丧.这仅从4.3.2开始.

我总是在构建和运行之前就停止了,所以这不是模拟器/ xcode被我吵醒的问题.

有什么建议?

xcode ios

35
推荐指数
2
解决办法
8187
查看次数

Restkit,停止记录?

我想知道.. Restkit一直显示可达性信息,在我使用它时请求信息.这会自动停止在生产版本中,还是我需要做些什么来阻止它们显示设置RKLog级别?

谢谢

cocoa-touch ios restkit

25
推荐指数
4
解决办法
6419
查看次数

APNS推送通知头疼; 适用于开发但不适用于生产

嗨朋友们,我已经至少待了一个星期.对于我的生活,我不会得到推动通知工作生产,在开发中工作正常.

我试过,我可以在网上找到的任何解决方案,没有任何效果.

我已经将证书重新生成了至少100次

我的entitlements.plist文件很好 -

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>get-task-allow</key>
    <false/>
    <key>aps-environment</key>
    <string>production</string>
    <key>application-identifier</key>
    <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string>
    <key>keychain-access-groups</key>
    <array>
        <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string>
    </array>
</dict>
</plist>
Run Code Online (Sandbox Code Playgroud)

当我更改环境并将get-task-allow设置为true时,它可以与gateway.sandbox.push.apple.com一起使用.我也尝试使用精确的捆绑名称而不是"$(AppIdentifierPrefix)$(CFBundleIdentifier)"

但是,当我将aps-environment更改为生产并将get-task-allow更改为false(甚至尝试使用true)时,设备不会收到任何通知.

我尝试过使用pushmebaby,编写我的ownscript,easyapns - 所有这些都与开发有关.我只是想弄清楚为什么它会破坏生产.

我的构建设置很好,我创建了一个发布配置的副本,称之为ad-hoc,并将codesigning元素设置为entitlements.plist,并将标识设置为相应的配置文件.

我使用相同的方法生成证书文件,因为我用于生成开发人员证书

openssl pkcs12 -in aps-production-cert.p12 -out aps-production-cert.pem -nodes
Run Code Online (Sandbox Code Playgroud)

当我使用codesign -dvvvv --entitlements -Forecast.app我得到这个 - 看起来很好.

Executable=/Users/seantan/Documents/Alpha/build/Ad-Hoc-iphoneos/Forecast.app/Forecast
Identifier=com.xxxxxxxx.wforecast
Format=bundle with Mach-O universal (armv6 armv7)
CodeDirectory v=20100 size=2651 flags=0x0(none) hashes=124+5 location=embedded
CDHash=63a3d238db30f8e4fd3c2a545867fe2fe645a981
Signature size=4313
Authority=iPhone Distribution: xxxxxxxx
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed …
Run Code Online (Sandbox Code Playgroud)

apple-push-notifications

12
推荐指数
1
解决办法
9101
查看次数

在测试iPhone应用程序时,只使用Leaks仪器就足够了吗?

我即将完成我的第一个iPhone应用程序,我想知道是否有一组步骤用于检查应用程序的内存泄漏,性能等?

正在检查泄漏仪器吗?

是否需要运行任何系列的测试?你们可以指点我的教程/文件吗?

iphone cocoa-touch ios ios-ui-automation

10
推荐指数
1
解决办法
867
查看次数

UITableViewCell - 与先前的单元格内容重叠

我的桌子有这个奇怪的问题

  1. 我有大约20个细胞展示
  2. 每个单元的高度约为84px
  3. 当我没有单击单元格时,我设置了背景颜色
  4. 前4个单元格没问题,但是当我向下滚动并点击第5个单元格时,每个单元格的内容开始与其他一些内容重叠,通常是来自前4个单元格的内容.

我相信它的一些细胞可重用性或绘图问题.我不确定如何解决它,我已经检查了我的代码,但我没有改变单元的触摸内容.

这是我的代码,也将添加一些图片 具有重叠内容的单元格

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 104;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

     return [stores count];
}

-(UITableViewCell *)tableView:(UITableView *) tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *CellIdentifier = @"Cell";
    CGRect Label1Frame = CGRectMake(5, 5, 250, 30);
    CGRect Label2Frame = CGRectMake(6, 42, 220, 20);    
    CGRect Label3Frame = CGRectMake(6, 62, 220, 20);        
    CGRect Label4Frame = CGRectMake(240,56, 70, 12);            

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

    if(cell == nil) {
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease]; …
Run Code Online (Sandbox Code Playgroud)

cocoa-touch uitableview

10
推荐指数
3
解决办法
1万
查看次数

谷歌玩开发商分销协议.在哪里查看和同意

Google Play开发者控制台会显示此消息

THE GOOGLE PLAY DEVELOPER DISTRIBUTION AGREEMENT HAS CHANGED

The account owner for this account needs to agree to the new Google Play Developer Distribution Agreement within the next 8 days or access to this developer console will be blocked until the account owner agrees to the new agreement.
Run Code Online (Sandbox Code Playgroud)

但我找不到在哪里同意它.我甚至看了一下https://play.google.com/intl/ALL_us/about/developer-distribution-agreement.html - 我只能查看它,但不能同意.

有什么建议?

android google-play

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

ASIHTTPRequest; 安装问题

我正在尝试安装ASIHTTPRequest,我遇到了libxml/HTMLParser,xmlsave,xpath和xpathInternals的问题.我已经包含了libxml2.2.7.3框架,并按照其网站上的指南进行了处理.

有什么建议? 替代文字

iphone asihttprequest

7
推荐指数
1
解决办法
8336
查看次数

Eclipse没有显示XML错误

我已经提到过这个问题Eclipse问题视图不再显示错误 但是这似乎无法解决我的问题

我目前的配置

适用于Web开发人员的Windows 7 64但Eclipse Java EE IDE(尝试过Juno,Indigo的几个版本)

Eclipse不断抛出错误"R无法解析为变量",但不会在xml文件中显示错误.

一个简单的例子

<EditText
    android:id="@+id/srchUsers"
    android:layout_width="match_parent"
    android:layout_height="60dp"
    android:layout_marginBottom="0dp"
    android:layout_marginTop="10dp"
    android:background="@android:color/white"
    android:ems="10"
    android:hint="Search Users"
    android:inputType="text"
    android:maxLines="1"
    android:paddingLeft="10dp"
    android:drawableLeft="@drawable/ic_action_search_black" 
    >
Run Code Online (Sandbox Code Playgroud)

可绘制的ic_action_search_black不存在,但是除了可怕的"R无法解析"之外,eclipse不会显示任何错误.我已经尝试了大多数解决方案,例如检查问题视图,标记视图,确保所有错误都设置为显示等.但没有任何效果.

我认为它可能是eclipse 64位,但在Win 7 64上的32位版eclipse却给了我同样的错误.

但是,我有另一台老机器运行Win 7 32位同样的日食(32位); 我可以看到布局(xml)文件中的错误,我很容易调试.

我在使用当前的开发机器进行调试时失去了宝贵的时间.

任何帮助都非常感谢.

Eclipse设置

窗口 - >首选项 - > Android - >构建 - >输出设置为详细

问题窗格 - >配置内容 - >显示所有项目已选中

标记窗格 - >配置内容 - >显示所有项目已选中

没有显示错误

注意图像显示R无法解析,没有显示xml错误,其中有明显的xml错误.

xml eclipse debugging android

6
推荐指数
1
解决办法
1255
查看次数

Android Studio - 内存占用

Android Studio似乎比任何其他应用程序占用更多内存.Java二进制文件增加了它,它只会在一段时间后减慢速度.通常重启android studio会修复此问题,但是,我需要每隔几个小时执行一次.在撰写本文时,Android Studio和Java共同占用了大约2.5GB的RAM.我以前认为日食很糟糕:)

内存使用情况的快照

我有10GB内存,但仍然发现它使用起来很慢,有时偶尔会挂起.我想知道其他人是否也面临同样的问题?

Android Studio版本:

Android Studio版本

android-studio

6
推荐指数
1
解决办法
886
查看次数

StaggeredGridView 在滚动时更改项目大小

我遇到了这个问题

我使用交错网格视图,它具有两列和单列的组合..像这样

在此输入图像描述

一切正常,直到我上下滚动几次,它随机变成这样

在此输入图像描述

又卷了几卷,最后就变成这样了

在此输入图像描述 我不知道为什么,而且它非常随机。我尝试在每次显示页面时执行notifyDataSetChanged,但似乎没有执行任何操作

这是我的仪表板的代码

public class DashboardStaggered extends Fragment {
    RecyclerView mRecyclerView;
    View v;
    MasonryAdapter adapter;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        Log.d("MASONRY", "onCreateView");
        super.onCreate(savedInstanceState);
        if(v==null) {
            Log.d("MASONRY", "v is NULL recreating");
            v = inflater.inflate(R.layout.activity_dashboard_staggered, container, false);
            setupRecyclerView();
        }else{
            Log.d("MASONRY", "v is NOT NULL");

        }

        return v;
    }

    private void setupRecyclerView(){
        mRecyclerView = (RecyclerView) v.findViewById(R.id.masonry_grid);
        mRecyclerView.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL));
        adapter = new MasonryAdapter(getActivity(),this);
        mRecyclerView.setAdapter(adapter);
        SpacesItemDecoration decoration = new SpacesItemDecoration(12);
        mRecyclerView.addItemDecoration(decoration);
        adapter.notifyDataSetChanged();

    }
    @Override
    public void …
Run Code Online (Sandbox Code Playgroud)

java android staggered-gridview android-recyclerview

5
推荐指数
1
解决办法
2807
查看次数