小编Viv*_*kar的帖子

应用程序加载程序警告 - 生成的API分析文件太大

当我通过应用程序加载器工具提交我的应用程序时出现一个奇怪的错误.

生成的API分析文件太大.我们无法在投放前验证您的API使用情况.这只是一条信息性消息.

应用程序被提交到iTunes Connect,我可以通过TestFlight进行测试.

这个错误背后的原因是什么?此外,我的应用程序是否有被拒绝的风险?

错误消息的副本如下.

在此输入图像描述

iphone xcode itunesconnect ios application-loader

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

如何在iOS 7中实现搜索栏.搜索工作正常,但加载的结果内容与搜索结果不对应

如何选择表视图的搜索结果而不是加载普通的表视图内容

在我的iOS项目中使用UISearchBar.搜索对我来说很好,但在选择搜索结果行的时候,选择行方法加载原始项而不是搜索结果行.我应该使用什么方法来加载结果行及其相应的详细信息页面.

谢谢,

码:

- (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString {    // Tells the table data source to reload when text changes
     [self filterContentForSearchText:searchString scope:
     [[self.searchDisplayController.searchBar scopeButtonTitles] objectAtIndex:      
     [self.searchDisplayController.searchBar selectedScopeButtonIndex]]];    

     // Return YES to cause the search result table view to be reloaded.
     return YES;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
     [self performSegueWithIdentifier:@"SubCategory" sender:self];
}      

#pragma mark Content Filtering
- (void)filterContentForSearchText:(NSString*)searchText scope:(NSString*)scope {
    // Update the filtered array based on the search text and scope.
    // Remove all …
Run Code Online (Sandbox Code Playgroud)

objective-c ios

9
推荐指数
1
解决办法
895
查看次数

swift - 单元测试CoreData(+ MagicalRecord)模型触发EXC_BAD_ACCESS

我需要XCTest单独测试()我的一些方法,包括对CoreData模型的引用.

以下行正确执行:

var airport: AnyObject! = Airport.MR_createEntity()

(lldb) po airport <Airport: 0x7fcf54216940> (entity: Airport; id: 0x7fcf54216a20 <x-coredata:///Airport/t1D3D08DA-70F9-4DA0-9487-BD6047EE93692> ; data: {
    open = nil;
    shortName = nil;
    visible = nil; })
Run Code Online (Sandbox Code Playgroud)

而以下行触发EXC_BAD_ACCESS:

var airport2: Airport = Airport.MR_createEntity() as! Airport

(lldb) po airport2
error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x0).
The process has been returned to the state before expression evaluation.
Run Code Online (Sandbox Code Playgroud)

我的主要目标没有出现此错误的迹象.配置是:两个目标中的模型对象,前缀为@objc(MyModel)类,在我的类中的模型中没有命名空间xcdatamodel

知道这里发生了什么吗?

unit-testing core-data ios magicalrecord swift

9
推荐指数
1
解决办法
571
查看次数

Swift - 不可能在我的tableView上使用"registerNib"来添加自定义单元格

我只想弄清楚如何在Swift中向tableView添加自定义单元格.我看了很多教程,他们都说在某些时候使用的东西tableView.registerNib对我来说不起作用!

这是我在tableViewController类中使用的代码:

var nib = UINib(nibName: "ViewExerciceCell", bundle: nil)
tableView.registerNib(nib, forCellReuseIdentifier: "ExerciceCell")
Run Code Online (Sandbox Code Playgroud)

当我尝试构建时,我在第二行上有一个错误:

无法使用类型为'(UINib,forCellReuseIdentifier:String)'的参数列表调用'registerNib'.

我能做什么 ?有关自定义单元格的所有教程和其他答案都使用此代码.

提前致谢

xcode cell uitableview swift

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

显示过时警告“服务器/ replset / mongos / db选项已过时”

在使用带选项server.ssl的mongoose 5.2.17连接到mongo后,如何消除此警告。

不建议使用server / replset / mongos / db选项,它们的所有选项在选项对象的最高级别[poolSize,ssl,sslValidate,sslCA,sslCert,sslKey,sslPass,sslCRL,autoReconnect,noDelay,keepAlive,keepAliveInitialDelay, connectTimeoutMS,家庭,socketTimeoutMS,reconnectTries,reconnectInterval,ha,haInterval,副本集,secondaryAcceptableLatencyMS,acceptableLatencyMS,connectWithNoPrimary,authSource,w,wtimeout,j,forceServerObjectId,serializeFunctions,ignoreUndefined,raw,bufferMaxEntries,Proscensness,Prostales,ProspectsScenery,Prostales,Prospects, loggerLevel,logger,promoteValues,promoteBuffers,promoteLongs,domainsEnabled,checkServerIdentity,validateOptions,appname,auth,user,password,authMechanism,压缩,fsync,readPreferenceTags,NumberOfRetries,auto_reconnect,minSize,monitorCommands,retryWrites,useNewUrl

mongoose mongodb node.js

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

如何从PagedListAdapter筛选数据?

我想像使用类过滤PagedListAdapter
一样过滤我的RecyclerView.AdapterFilter

public class CustomFilter extends Filter {

    private CustomFilter(RecyclerViewAdapter mAdapter) {
        super();
    }

    @Override
    protected FilterResults performFiltering(CharSequence constraint) {
        filteredList.clear();
        final FilterResults results = new FilterResults();
        // do filter stuff
        return results;
    }

    @Override
    protected void publishResults(CharSequence constraint, FilterResults results) {
    }

}
Run Code Online (Sandbox Code Playgroud)

谁能指导我?

android filter adapter android-architecture-components

6
推荐指数
0
解决办法
260
查看次数

Swift添加上面的行来控制

在下面的屏幕中,我想在"项目"标签上方添加水平线,在"添加"按钮后面(在下方添加按钮,我有动态表格).UIGraphicsGetCurrentContext()在这里不起作用.

有人可以帮我怎么做?

截图

ios uistoryboard swift

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

iOS Flip UIView没有阴影

我使用transitionFromView.TransitionFlipFromLeft将一个视图替换为另一个视图。然后,我想翻转视图而视图上方没有阴影。

UIView.transitionFromView(
 self.postListView,
 toView:     self.userListView,
 duration:   0.8,
 options:    .TransitionFlipFromLeft,
 completion: nil
)
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

uiview ios swift

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

NSFileManager URL与路径

这是为什么网址的方法,如moveItemAtURL:toURL:error:NSFileManager类中建议在路径的方法,如moveItemAtPath:toPath:error:

url nsfilemanager ios

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

CLLocationManager - kCLErrorDomain

我有一个 CLLocation 管理器。它工作正常。

locManager = CLLocationManager()
locManager.delegate = self
locManager.desiredAccuracy = kCLLocationAccuracyBest
locManager.requestWhenInUseAuthorization()
locManager.startUpdatingLocation()
Run Code Online (Sandbox Code Playgroud)

当然,我有委托方法:

func locationManager(manager: CLLocationManager, didFailWithError error: NSError) {
        println("didfail")
        println(error)
    }

func locationManager(manager:CLLocationManager, didUpdateLocations locations:[AnyObject]) {
        println("location manager called..")
        let locationLast = locations.last as! CLLocation

        latitude = locationLast.coordinate.latitude.description
        longitude = locationLast.coordinate.longitude.description

        locManager.stopUpdatingLocation()

       //....
    }
Run Code Online (Sandbox Code Playgroud)

运行没有任何问题!但是,当我在这里 47.5775679 19.0488392(或在此点的 1-2 公里半径内)时,它会引发此错误:

Error Domain=kCLErrorDomain Code=0 “操作无法完成。(kCLErrorDomain 错误 0。)”

我也尝试过模拟器和真实设备。当我尝试时,我在真实设备上有互联网连接。有黑洞吗?:) 或者我不知道。

任何人都可以请给我任何想法,导致这种现象的原因是什么?

谢谢!

cllocationmanager ios swift

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