Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Auctions
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Wilcox Technologies
Auctions
Commits
6f7371a3
Commit
6f7371a3
authored
Jul 19, 2012
by
A. Wilcox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iUI: WTPrettyListVC: Editing property is now the owning VC's responsibility.
As such, support non-editing modes.
parent
265f09b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
iPhone/MobileAuctions/MobileAuctions/Common/View Controllers/WTPrettyListViewController.m
...ions/Common/View Controllers/WTPrettyListViewController.m
+2
-1
No files found.
iPhone/MobileAuctions/MobileAuctions/Common/View Controllers/WTPrettyListViewController.m
View file @
6f7371a3
...
...
@@ -52,7 +52,6 @@
{
[
super
viewDidLoad
];
[
self
setEditing
:
YES
animated
:
NO
];
[[
self
tableView
]
setAllowsSelectionDuringEditing
:
YES
];
}
...
...
@@ -85,6 +84,8 @@
-
(
NSInteger
)
tableView
:(
UITableView
*
)
tableView
numberOfRowsInSection
:(
NSInteger
)
section
{
if
(
!
[
self
isEditing
])
return
[
model
count
];
return
MIN
([
model
count
]
+
1
,
maxItems
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment