ListView ๋๋ TableView์์ ContextAction์ ๋ํ ๊ฐ ๋ณ๊ฒฝ ์ฌํญ์ผ๋ก ์ธํด iOS์์ UI๊ฐ ๊ธฐํ ๊ธ์์ ์ผ๋ก ์ฆ๊ฐํฉ๋๋ค.
์ํฉ์ ๋ง๋ ๋ฉ๋ด (iOS์์ ์ผ์ชฝ์ผ๋ก ์ค ์์ดํ, Android์์ ๊ธธ๊ฒ ๋๋ฅด๊ธฐ, UWP์์ ์ค๋ฅธ์ชฝ ํด๋ฆญ ๋ฑ)๋ UI ์๋ ์ ํ์์ด์ด ๋ณ๊ฒฝ ์ฌํญ์ ์ฆ์ ๋ฐ์ํด์ผํฉ๋๋ค.
iOS์์๋ ๋ณ๊ฒฝ ๋ ๋๋ง๋ค UI๊ฐ ๊ฒฐ๊ตญ ๋ฌด๊ธฐํ ๋ฉ์ถ ๋๊น์ง ์๋ต ์๋๊ฐ ๋๋ ค์ง๊ณ ๋๋ ค์ง๋๋ค.
https://github.com/sonic1015/bugRepo/files/1835039/2018-03-12.T16-17-07.zip
์๋ ํ์ธ์,
๋๋ ๋ํ์ด ๋๊ฐ์ ๋ฌธ์ ์ ๋ํด ๋ฌ๋ฆฌ๊ณ ์๋๋ฐ, ์ธ์ ์ค์ ๋ก ์ด๊ฒ์ ์ ํํ ์ง ๊ถ๊ธํฉ๋๋ค.
์ด ๋ฌธ์ ๋ ์ค๋ซ๋์ ํ๋์ด ์์๋ ๊ฒ ๊ฐ์ต๋๋ค. ์ฐ๋ฆฌ๋ ๊ฐ๋ฅํ ํ ๋นจ๋ฆฌ ๋ฌธ์ ์ ์ฐ์ ์์๋ฅผ ์ ํ๊ณ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํด ๋ ธ๋ ฅํ๊ณ ์์ต๋๋ค. ๋ชฉ๋ก์ ํ์ธํ๋ ๋ฐ ๋์์ด๋๋๋ก Xamarin.Forms์ ์ต์ ๋ฒ์ ์์ ์ฌ์ ํ ์ํฅ์ ๋ฐ๋์ง ์๋ ค์ฃผ๋ ์ ๋ฐ์ดํธ๋ฅผ ๋ณด๋ด ์ฃผ์๋ฉด ๊ฐ์ฌํ๊ฒ ์ต๋๋ค. ๋ฐํ๋ฌผ. ํฅํ 30 ์ผ ๋์์ด ๋ฌธ์ ์ ๋ํ ์๋ก์ด ํ๋์ด ์์ผ๋ฉด์ด ๋ฌธ์ ๋ฅผ ์ข ๊ฒฐํด์ผํ๋์ง ์ฌ๋ถ๋ฅผ ํ๊ฐํฉ๋๋ค. ๊ฐ์ฌํฉ๋๋ค!
๋ณต์ ๋ฅผ Xamarin.Forms v4.6.0.867๋ก ์ ๋ฐ์ดํธํ์ต๋๋ค.
์ฒซ ๋ฒ์งธ ๋ฉ๋ด ํญ๋ชฉ ๋ณ๊ฒฝ ํ ๋ฉ๋ด ๋ซ๊ธฐ์ ๋ํ ์ ๋๋ฉ์ด์ ์ด ์์ต๋๋ค. ์ฝ 7 ๊ฐ์ ๋ฉ๋ด ํญ๋ชฉ ๋ณ๊ฒฝ ํ ๋ค์ ์์ธ์ ํจ๊ป ์ถฉ๋์ด ๋ฐ์ํฉ๋๋ค.
System.NullReferenceException: Object reference not set to an instance of an object
at Xamarin.Forms.Platform.iOS.ContextActionsCell.OnCellPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00012] in D:\a\1\s\Xamarin.Forms.Platform.iOS\ContextActionCell.cs:475
at (wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:229
at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:353
at Xamarin.Forms.Cell.OnContextActionsChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0002d] in D:\a\1\s\Xamarin.Forms.Core\Cells\Cell.cs:227
at (wrapper delegate-invoke) <Module>.invoke_void_object_NotifyCollectionChangedEventArgs(object,System.Collections.Specialized.NotifyCollectionChangedEventArgs)
at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00018] in <866ebc6712e548788bfc4c085907ae80>:0
at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) [0x00009] in <866ebc6712e548788bfc4c085907ae80>:0
at System.Collections.ObjectModel.ObservableCollection`1[T].RemoveItem (System.Int32 index) [0x00021] in <866ebc6712e548788bfc4c085907ae80>:0
at System.Collections.ObjectModel.Collection`1[T].Remove (T item) [0x00027] in <624bcc4ce53347508a7b8fa821d78da4>:0
at bugRepo.CustomViewCell+<>c__DisplayClass0_0.<.ctor>b__1 (System.Object sender, System.EventArgs args) [0x00002] in C:\Users\eballantyne\Downloads\bugRepo-1\bugRepo-1\bugRepo\bugRepo\CustomViewCell.xaml.cs:40
iPhone 8, iOS 13.4.1์์ ํ ์คํธ๋์์ต๋๋ค. Android ๋๋ UWP์์ ํ ์คํธํ์ง ์์์ต๋๋ค.