A
-
S
ITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
MGTableViewCell *cell = [_dataSource mg_safeObjectAtIndex:indexPath.row];
if ([cell isKindOfClass:[MGContributionTitleValueCell class]]) {
// if ([(MGContributionTitleValueCell *)cell type] == MGContributionTitleValueCellTypeCity) {
// if (self.selectedCountry.cityList.count > 0) {
// cell.hidden = NO;
// return [MGContributionTitleValueCell cellHeightWithItem:nil tableView:tableView];
// } else {
// cell.hidden = YES;
// return 0;
S
ITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
MGTableViewCell *cell = [_dataSource mg_safeObjectAtIndex:indexPath.row];
if ([cell isKindOfClass:[MGContributionTitleValueCell class]]) {
// if ([(MGContributionTitleValueCell *)cell type] == MGContributionTitleValueCellTypeCity) {
// if (self.selectedCountry.cityList.count > 0) {
// cell.hidden = NO;
// return [MGContributionTitleValueCell cellHeightWithItem:nil tableView:tableView];
// } else {
// cell.hidden = YES;
// return 0;
ITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
MGTableViewCell *cell = [_dataSource mg_safeObjectAtIndex:indexPath.row];
if ([cell isKindOfClass:[MGContributionTitleValueCell class]]) {
// if ([(MGContributionTitleValueCell *)cell type] == MGContributionTitleValueCellTypeCity) {
// if (self.selectedCountry.cityList.count > 0) {
// cell.hidden = NO;
// return [MGContributionTitleValueCell cellHeightWithItem:nil tableView:tableView];
// } else {
// cell.hidden = YES;
// return 0;
S
ITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
MGTableViewCell *cell = [_dataSource mg_safeObjectAtIndex:indexPath.row];
if ([cell isKindOfClass:[MGContributionTitleValueCell class]]) {
// if ([(MGContributionTitleValueCell *)cell type] == MGContributionTitleValueCellTypeCity) {
// if (self.selectedCountry.cityList.count > 0) {
// cell.hidden = NO;
// return [MGContributionTitleValueCell cellHeightWithItem:nil tableView:tableView];
// } else {
// cell.hidden = YES;
// return 0;
S
ITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
MGTableViewCell *cell = [_dataSource mg_safeObjectAtIndex:indexPath.row];
if ([cell isKindOfClass:[MGContributionTitleValueCell class]]) {
// if ([(MGContributionTitleValueCell *)cell type] == MGContributionTitleValueCellTypeCity) {
// if (self.selectedCountry.cityList.count > 0) {
// cell.hidden = NO;
// return [MGContributionTitleValueCell cellHeightWithItem:nil tableView:tableView];
// } else {
// cell.hidden = YES;
// return 0;
S
ITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
MGTableViewCell *cell = [_dataSource mg_safeObjectAtIndex:indexPath.row];
if ([cell isKindOfClass:[MGContributionTitleValueCell class]]) {
// if ([(MGContributionTitleValueCell *)cell type] == MGContributionTitleValueCellTypeCity) {
// if (self.selectedCountry.cityList.count > 0) {
// cell.hidden = NO;
// return [MGContributionTitleValueCell cellHeightWithItem:nil tableView:tableView];
// } else {
// cell.hidden = YES;
// return 0;
Episode 2
S
lf.worksType == MGContributionWorksTypeDialogFiction) {
if (![NSString mg_checkIsEmpty:_episodeID]) {
NSArray *updateMessageArray = [MGDFMessageItem arrayFromItems:self.messageItems];
NSData *buffer = [NSJSONSerialization dataWithJSONObject:updateMessageArray options:NSJSONWritingPrettyPrinted error:nil];
NSString *contentData = [[NSString alloc] initWithData:buffer encoding:NSUTF8StringEncoding];
[MBProgressHUD showLoadingHUDMessageInWindow:@""];
[MGDialogFictionDataService updateContributionDialoguesEpisodeContentWithContentID:_contentID episodeID:_episodeID contentData:contentData openAt:openAt authorWords:_authorWords booksIDs:_bookIDs completion:^(NSURLSessionDataTask * _Nonnull task, MGDataResult * _Nullable dataResult) {
if (dataResult.success) {
[MBProgressHUD stopHUDLoading];
[[NSNotificationCenter defaultCenter] postNotificationName:MGContributionEpisodesDidUpdateSuccess object:nil];
if ([_delegat
S
lf.worksType == MGContributionWorksTypeDialogFiction) {
if (![NSString mg_checkIsEmpty:_episodeID]) {
NSArray *updateMessageArray = [MGDFMessageItem arrayFromItems:self.messageItems];
NSData *buffer = [NSJSONSerialization dataWithJSONObject:updateMessageArray options:NSJSONWritingPrettyPrinted error:nil];
NSString *contentData = [[NSString alloc] initWithData:buffer encoding:NSUTF8StringEncoding];
[MBProgressHUD showLoadingHUDMessageInWindow:@""];
[MGDialogFictionDataService updateContributionDialoguesEpisodeContentWithContentID:_contentID episodeID:_episodeID contentData:contentData openAt:openAt authorWords:_authorWords booksIDs:_bookIDs completion:^(NSURLSessionDataTask * _Nonnull task, MGDataResult * _Nullable dataResult) {
if (dataResult.success) {
[MBProgressHUD stopHUDLoading];
[[NSNotificationCenter defaultCenter] postNotificationName:MGContributionEpisodesDidUpdateSuccess object:nil];
if ([_delegat\
lf.worksType == MGContributionWorksTypeDialogFiction) {
if (![NSString mg_checkIsEmpty:_episodeID]) {
NSArray *updateMessageArray = [MGDFMessageItem arrayFromItems:self.messageItems];
NSData *buffer = [NSJSONSerialization dataWithJSONObject:updateMessageArray options:NSJSONWritingPrettyPrinted error:nil];
NSString *contentData = [[NSString alloc] initWithData:buffer encoding:NSUTF8StringEncoding];
[MBProgressHUD showLoadingHUDMessageInWindow:@""];
[MGDialogFictionDataService updateContributionDialoguesEpisodeContentWithContentID:_contentID episodeID:_episodeID contentData:contentData openAt:openAt authorWords:_authorWords booksIDs:_bookIDs completion:^(NSURLSessionDataTask * _Nonnull task, MGDataResult * _Nullable dataResult) {
if (dataResult.success) {
[MBProgressHUD stopHUDLoading];
[[NSNotificationCenter defaultCenter] postNotificationName:MGContributionEpisodesDidUpdateSuccess object:nil];
if ([_delegat
lf.worksType == MGContributionWorksTypeDialogFiction) {
if (![NSString mg_checkIsEmpty:_episodeID]) {
NSArray *updateMessageArray = [MGDFMessageItem arrayFromItems:self.messageItems];
NSData *buffer = [NSJSONSerialization dataWithJSONObject:updateMessageArray options:NSJSONWritingPrettyPrinted error:nil];
NSString *contentData = [[NSString alloc] initWithData:buffer encoding:NSUTF8StringEncoding];
[MBProgressHUD showLoadin
if (dataResult.success) {
[MBProgressHUD stopHUDLoading];
[[NSNotificationCenter defaultCenter] postNotificationName:MGContributionEpisodesDidUpdateSuccess object:nil];
if ([_delegat
Download NovelToon APP on App Store and Google Play