Application freezing when I press button

时间:2016-02-12 20:34:53

标签: ios swift

So, my assignment for my class is to make an app for the 7th graders at my school to work on math.

In this particular view controller, I am making something that they can practice prime numbers with. I couldn't get everything to load using the import pandas as pd df = pd.read_csv(yourdata, index_col=0).loc[:,'header1'] so I implemented a button to activate the random number, modulus to check if it's prime, and insert it into the label.

This is ALL of my code that is inside of the Class:

override func viewDidLoad(){}

1 个答案:

答案 0 :(得分:2)

Debug and watch what happens to your value of temp2. I suspect it never becomes equal to zero, hence your while loop never ends

相关问题