I'm using the Three20 Photo Gallery and wondered if it's possible to have two different grid sizes in two different galleries. So in Gallery one I use the standard size (up to 4x4 thumbs) and in the other I only want a 2x2 gallery size. Is that possible and if yes how (I suppose subclassing comes into play)? I would really appreciate some code samples. Thanks a lot.
How to change the size of the grid of TTThumbsViewController
734 views Asked by DanielR At
1
There are 1 answers
Related Questions in IPHONE
- How to control the volume of an iPhone programmatically in objective-c
- my website crash on safari The site sometimes crashes and I can't recover the crash
- Postal Framework crash in iPhone but runs successfully in simulator
- Xcode 15 building failure when using iphone 15 as simulator, using ios 17
- Images uploaded via Active Storage not displaying in Active Admin or on certain devices
- Any problem with creating provisioning profile with old Iphone?
- Does anyone know how to make iPad layout the same as iPhone's? Size wise the text and overall layout get's smaller when I run the app on the iPad
- Keyboard not appearing when connecting smart card reader to iPhones with type-c port. i.e. iPhone 15/ 15 pro
- Access the list of SIM mobile numbers installed in the iPhone
- Can we produce haptics and record from microphone the haptic sound at the same time on iOS?
- SwiftUI's localized string do not load from main bundle despite using the main bundle identifier (an xcode bug?)
- Cordova iOS only app upload through transport requires WKWatchKitApp
- Amazon s3 video is not played on Iphone
- build getting failed for ios xcode build -flutter app
- "Error when Importing 'mysdk' into iOS Demo App: dyld Library not loaded: @rpath/MQTTClient.framework/MQTTClient"
Related Questions in THREE20
- How to detect a THREE.Line whether lies on between THREE.Line's start and end points or not in ThreeJS?
- Is there a way to apply a rainbow emission on a Standard Material?
- How do I give random rotation to boxes positioned arbitrarily using a map function? I tried rotateY/X = { Math.random() * Math.Pi }
- How can I make a curved world in Three.js?
- Using THREE OBJLoader in Gatsby Production Build
- What does "Cannot set property 'getStrokeStyle' of undefined" mean for a Three.js program?
- My App is getting stopped in portrait mode while working fine in landscape mode in IPAD
- three20:The three20 framework of the source code error?
- Use of three20 framework in ios programming
- Running threejs on IE 9 failing because of Float32Array
- How to send request in JSON format using TTURLRequest?
- iOS7 NavigationBar visually grows from 44 to 64 points every segue
- Clear three20 & Restkit cached information to free disk memory space
- Three20 doesn't compile with Xcode 4.5.2 and Xcode 4.6.2
- three20 TTTextBarController semantic error ios 6
Related Questions in PHOTO-GALLERY
- I have a script to zoom/full screen an image. But it has a big problem
- WP Bootstrap loader causes many plugins to fail
- Flutter image_picker returns different file name on every pick from gallery
- How to solve PHPickerViewControllerDelegate Error Domain=NSCocoaErrorDomain issues?
- How can make Codable of type PhotosPickerItem?
- website - rotating gallery (CSS / Javascript)
- Laggy Photo Gallery Like Scaling Animation of Images in Phones Only
- How to fix Call to undefined method Elementor\Widgets_Manager::register() .. My phot-gallery by 10web plugin is giving this error
- Some photos from the gallery rotate on some device Android Kotlin
- How to fix choppy animations in HTML/CSS/jQuery Flexbox Image Gallery?
- How to view photos selected by PhotoPicker(android 13) in phone's gallery
- Responsive image carousel slider component with inertia mouse/touch & multiple images with different aspect ratios
- Flutter: How to get a specific album with photo_manager?
- Hosting pictures with React and Google drive
- PHPhotoLibrary performChanges errors when copying images and videos
Related Questions in TTTHUMBSVIEWCONTROLLER
- Thumbs up and thumbs down, saves locally, and continues counting any time new user clicks
- how to remove bottom gray bar from Three20's TTThumbsViewConroller?
- Three20 TTThumbviewcontroller paging Load more link doesn't add more rows
- NSMutableArray memory leak when reloading objects
- UITabBarController disappear in Three20 TTThumbsViewController
- How to identify a touched photo in TTThumbsViewController by Three20 via gesture?
- TTThumbsViewController display images while scrolling
- Strange white bar shows, when using TTThumbsViewController with iOS 5 SDK
- implementing TTThumbsViewController on a UIViewController?
- NavigationBar not appearing with TTThumbsViewController in UITabBarController
- How to push next view with TTNavigator?
- Cannot populate the data inside a ViewController class
- How to react to failed thumb image loading in TTThumbsViewController?
- TTThumbsviewcontroller stops loading thumbnails
- How to change the size of the grid of TTThumbsViewController
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I did the same thing and my solution was like this
1, Extend TTThumbsDataSource and override
(NSInteger)columnCount { // CGFloat width = TTScreenBounds().size.width; // return round((width - kThumbSpacing*2) / (kThumbSize+kThumbSpacing)); return 3; }
(Class)tableView:(UITableView*)tableView cellClassForObject:(id)object { if ([object conformsToProtocol:@protocol(TTPhoto)]) { return [TTThumbsTableViewCell_Ext class]; } else { return [super tableView:tableView cellClassForObject:object]; } }
2, Extend TTThumbsTableViewCell and change the setting
_thumbSize = 95 (your calculated size) in
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString*)identifier