Tom Kuschka

1

votes
1

answer
124

views

UITests failing when run in group but succeed when run independently

I'm currently working on a project with many asynchronous code and I'm writing the UITests for this project. During the development I run them one by one but never in a group. So I thought the tests are succeeding. But when testing them all together most of them are failing. I implemented the setup...
Tom Kuschka
7

votes
2

answer
2.1k

views

Changing color of single drawable in RecyclerView will change all drawables

I just tried to change the color of my drawable inside my row depending on a value but instead of one drawable the adapter changed all of them. Here is my Adapter: public class ReportAdapter extends RecyclerView.Adapter { DataBaseHelper dataBase; private LayoutInflater inflater; List data = Collecti...
Tom Kuschka
4

votes
2

answer
5.5k

views

Cannot subscript a value of type '[String]' with an index of type 'Int'

I'm recently trying to build a custom UITableViewCell Class by adding a minor improved UITextField. I am also coding in swift 2 and I realised this error by recompiling the project in Xcode 7 beta. I initialised the array by call a custom init method. Heres is my Code: INIT METHOD init(dataObject: [...
Tom Kuschka
14

votes
2

answer
16.4k

views

Super.init isn't called before returning from initializer

I try to give my UITableViewCell Class a custom initilizer but i can't figure it out what I am doing wrong. Here is my Code: init(dataObject: [NSManagedObject]!, objectAttributeValues: [String]!,placeholder: String!, segmentedControl: UISegmentedControl?, cellHeight: CGRect, cellWidth: CGRect) { se...
Tom Kuschka
4

votes
1

answer
4k

views

How can I fix “fatal error: can't index empty buffer”

I try to develop a custom autocompletion for a textfield. The code works but if I delete all my input, the debugger says: 'fatal error: can't index empty buffer' in the line where is written: if createdArrayInDependencyOfInput[indexOfArray] == textFieldText && indexOfArray >= 0 && currentCountOfInpu...
Tom Kuschka
3

votes
0

answer
283

views

How to transfer and display an array of integers from swift to php

I'm recently trying to send an NSArray of integers to my server that runs PHP. If this succeeds, the server will then proceed the data. So I need a way to send the array properly to php and than transform the array so that php can work with it. This is my Swift-Code for sending the array so far: let...
Tom Kuschka
0

votes
1

answer
30

views

Converting PDFDocument to NSString

I'm trying to upload a PDF to my server by converting the PDFDocument, which I get from the pdfView.document() (I'm using Quartz), to a NSData Object and then to a NSString. Later on I want to encrypt the String via AES. I also want to display the uploaded String as a PDF (from NSString to NSData) I...
Tom Kuschka
0

votes
1

answer
799

views

Can't delete row in section

i've got a problem by deleting cells in a section.The tableViewController has three sections with various cells. If I try to delete one cell, the debugger will show: 2015-01-23 20:22:15.105 Grade - Zensurenverwaltung[23854:5674475] * Assertion failure in -[UITableView _endCellAnimationsWithContext:]...
Tom Kuschka