I am using EPP Plus library to create my excel documents. I would like to protect my document/cells. I can lock my cells but I am unable to lock my document. Can anybody please assist me with how to do this.
Thanks
Well I resolved it. It was pretty easy. Each cell has property locked in style. So basically we need to unlock cells which are need to be editable. then we lock the whole sheet. It does the trick :)
Related
Have to develop the UI with multiple Columns like Table in Excel sheets (Spreadsheets). Am trying to achieve using UICollectionView. Can anyone please guide me to achieve this? Thanks in advance.
If you are looking for a 3rd party library out there, this one is pretty darn good.
https://github.com/glyuck/GlyuckDataGrid
It's not currently fully supporting Swift 4 out of the box and is not being maintained, but the library is small, and with minimal tweaks to the current code, you shouldn't have any issue getting it ready for Swift 4.
You could also Fork the repo, make the updates, and submit a PR. I hope it helps!
I simply want to add iAds to my app but since my app is specifically designed for families, it's crucial that it's free of any inappropriate contents.
In Short, how do I include only "safe" contents in my iAds?
Any help will be much appreciated.
Thank you.
I am building app, that there will be a "Admin Panel" Where features can be turned on and off. I have come to realize that i am not sure how that is gonna work. Would I create a Db and make that editable or would i need to make a plist and have the options work from there? Some of the options that will be able to be turned on and off will range from pages, to certain parts of the page. Anyone have any suggestion or somewhere to point me in a direction to get this answer?
How you decide to persist the data is up to you. You might try NSUSerDefaults.
Regardless of how you store the data, you can use an editable UITableView with a cell style of UITableViewCellStyleValue1. This is similar to how many of the settings are handled in the Settings app.
UITableViewCellStyleValue1
A style for a cell with a label on the left side of the cell with
left-aligned and black text; on the right side is a label that has
smaller blue text and is right-aligned. The Settings application uses
cells in this style.
This question is very broad and the answer might be "it depends". A typical approach would be to leverage NSUserDefaults and store the preferences there.
Read the documentation on NSUserDefaults and consult the Preferences and Settings Programming Guide for a bigger picture.
I did this recently and decided against using the database for storage of these options as it seemed unnecessarily complex for just storing a few settings. OTOH, I opted not to use the plist. In the end, I decided to use the NSKeyedArchiver to save those settings out to a file in the filesystem. My decision against the plist was based on the fact that I had a couple of complex data structures I wanted to save.
It may be that it could have been done in a plist or using NSDefaults, but the save and load methods took only a few lines of code, then I created a class containing all of the items I needed to save.
Were I doing it again I think I would do it the same way.
I have a sample iOS app that generates multiple reports using data in the app.
Those reports looks exactly similar to Microsoft Excel spreadsheets like this.
How can I generate the similar using objective-c. I don't have any idea about how can I create the such grid-view. Do we have any objective-c supported framework or anyhting similar to UITableView to create such spreadsheet.
Any help is greatly appreciated.
I have never seen anything like this open source, and I don't think there is. So I would try to hand make it. I think there are three ways to go:
HTML: This should be the easier way to go. Using a UIWebView to render some pre generated HTML/CSS you can create quite easily that spreadsheet (or even use a JS library).
Using a grid view: Either using the Apple solution (UICollectionView, since iOS 6.0) or a third party (AQGridView,GMGridView, etc. There are several, I have only used AQGridView, and its quite complete). The complexity here, is that this libraries are usually developed to show a grid of UIViews, so it's no easy to make them look like the spreadsheet you want.
CoreGraphics: This is much more complex, as you need to draw all the lines, and then draw the fields, but is by far more flexible. I've developed a library for plotting a Radar Chart (RPRadarChart) using Core Graphics, and it wasn't that hard. I have a github repo with all the code that I used to learn Core Graphics, if you want, take a look at it: RPCGSandbox
Good luck, and if you find a better solution, please let us know.
I was looking for a different solution to this issue, but so far I've found:
https://github.com/mochidev/MDSpreadView
Looks like a spreadsheet, and has a similar interface to what a UITableView uses. I was looking for an alternative because the MDSpreadView doesn't use ARC, has a couple compiler warnings, and when I created a library project for it, I noticed it uses lots of images which do not get copied over by default.
You might want to dig deep into UICollectionView, UICollectionViewFlowLayout and also it would be worth looking into AutoLayout Constraints in iOS6. A helpful link : http://www.raywenderlich.com/20881/beginning-auto-layout-part-1-of-2
Use multiple tables as columns and when one scroll you scroll the rest of them as well. I create a grid using that and it was efficient to around 10000 rows and 20 columns. If you want i can guide you how will it be done.
Alrighty,
I am new to Xcode so I apologise if I am missing any key points here.
But, I want to have a large list in a UITableView type display. The list will be an array of strings with maybe 500 ish entries and a search bar to search for what ever entry you like. Once found you can tap the entry and it will load a detailed view of what ever it is. I would prefer to not have to have all of the data entry in Xcode and am wondering what would be the neatest way to store/read/write this?
I am leaning towards some sort of data file... but couldnt quite work out how to implement this into Xcode. I have searched around a bit but couldnt find anything which made sense (probably because i am quite new to Xcode).
This will be an App for iOS.
Any ideas?
I understand that you want to create a UITableView displaying static data and your problem is that you don't want to store the data in your code. Depending on how complicated the structure of your data is you could save it in a sql database, store it with coredata, keep it in a xml file or keep it in a file in a custom encoding. I don't quite now where your Problem lies. You can just load the file/database, parse it in an object structure and display it in the tableview. There are a couple of advantages of using a database to a file:
You can create connections easily and handle them without a lot of effort
You only need to load in the memory what is really needed at the moment.
Core data will be fine for you. However if you don't need all of its extra functions and the list will be static (eg, non changing and will be read into the code at runtime in its entirerty) then you can probably use a plist. Plist data can be read directly into arrays.