[英]Converting Objective-C Method to C#
我正在嘗試將以下Objective-C方法轉換為C#,但遇到了麻煩。
- (void)collectionView:(UICollectionView *)collectionView moveItemAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath;
這個對嗎?
public void moveItemAtIndexPath(UICollectionView collectionView, NSIndexPathToIndexPath, NSIndexPath FromIndexPath)
我相信這是以下內容:
public void moveItemAtIndexPath(UICollectionView collectionView, NSIndexPath fromIndexPath, NSIndexPath toIndexPath)
盡管“公共/受保護/私人”全在您身上。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.