본문 바로가기

오류4

alert dialog 에서 checkbox(setMultiChioceItems) 안나올때 alertDialog로 setSingleChoiceItem할때는 잘되었는데 setMultiChoiceItem이 잘 안뜨는 경우가 있습니다. 이때는 setMessage가 설정되어 있는지 확인해 보세요. setMessage와 setMultiChoiceitems는 둘이 같이 사용할 수 없습니다. 2017. 8. 22.
응용프로그램 0xc000007b 오류해결법 위와 같이 0xc000007b 오류가 뜰때 all in one runtime을 다운받아 설치하시면 됩니다. aio_runtime download 위 링크를 눌러 다운받은 후 실행시켜 주세요. 위와 같이 설치가 실행되고, 몇번의 커맨드 창이 켜지면서 설치를 완료합니다. 2016. 11. 24.
static method 안에서 LayoutInflater 사용하기 alertDialog같은 팝업 UI등을 만들때 method나 class가 static으로 만들어야 하는 경우 LayoutInflater를 사용하여 특정 layout을 가져올려고 할 경우 에러가 발생합니다. 1LayoutInflater inflater = getLayoutInflater();cs static method에서는 사용할 수 없다고 오류를 발생시킵니다. 구글링해보니 context를 추가하면 된다고 되어있는데 안되네요. 결국 찾아낸 방법은 LayoutInflater.from(context)를 사용하면 됩니다. 1LayoutInflater inflater = LayoutInflater.from(mContext);cs mContext는 static 타입의 Context입니다. 12static Cont.. 2016. 8. 12.
[SWIFT] Floating 연산 오류(?) 스터디 목적으로 간단한 계산기 프로그램을 만들고 있는데 난간에 부딪혔네요 ㅠ 일반 정수 연산을 잘되는데 소수점 연산을 하다보니 Floating 연산시 연산과정에서 이상하게 변합니다. 12345678910111213141516var new=0.11var pointnum:Float=0.1if(new>0){ //still under 0 repeat{ cnt++ new=new*10 print("cur1 point is : "+String(new)) print(Int(new)) print(Float(Int(new))) new=Float(new)-Float(Int(new)) print("cur2 point is : "+String(new)) pointnum/=10 print("curcal point is : "+S.. 2016. 1. 22.

인기글