对不起,但我的标题标签没有显示在我的按钮中

时间:2017-10-12 16:18:08

标签: ios xamarin.ios

V = {'CGN', 'FRA','KEL','MUC','PAD','SFX','STR','TXL'}

E = {('SFX','TXL'),('FRA','CGN'),('FRA','MUC'),('FRA','STR'),('CGN','FRA'),('STR','FRA'),('TXL','SFX'),('CGN','PAD'),('PAD','KEL'),('MUC','KEL'),('KEL','STR')   }
S = {('A','B'),('A','B')}

def Hallo(V,E):
    Total = []
    Que = []
    for i in E:

        for j in i:
            if j == V:
                Total.append(i)

    for i in Total:
        for a in i:
            if a != V:
                if a not in Que:

                    Que.append(a)

    return Que


def Durchsuchen(V,E):
    besucht = []
    Liste = []
    Liste.append(Hallo(V,E))
    besucht.append(V)

    while len(Liste) !=0

        for i in Liste:
            if i not in besucht:
                besucht.append(i)
                Liste.remove(i)
                Liste.append(Hallo(i,E))





    print Liste
    print  besucht


print Durchsuchen('FRA',E)

1 个答案:

答案 0 :(得分:0)

谢谢你的支持,我解决了这个问题。我正在使用标签的子类,它不能生成应该有按钮的文本,这就是我所做的

`var localizedStringSubmit = NSBundle.MainBundle.LocalizedString(“SUBMIT”,“”);

btnSubmit.SetTitle(localizedStringSubmit,UIControlState.Normal); `