three20

Three20 framework, how to change default row height TTTableView?

白昼怎懂夜的黑 提交于 2019-12-05 23:13:55
I am using a TTListDataSource to populate a TTTableViewController. This is the code I am using to populate the TTListDatSource items array: NSString *text = [NSString stringWithFormat:@"<b>%@</b><br/>%@", someObject.title, someObject.text]; TTStyledText *styledText = [TTStyledText textFromXHTML:text lineBreaks:YES URLs:YES]; [items addObject:[TTTableStyledTextItem itemWithText:styledText]]; I would like to change the default row height the TTTableView is using, currently 2 lines height. any ideas how can I do that? I've tried using these properties in few parts of my code with no luck:

Three20's URL-based navigation + tab bar example?

筅森魡賤 提交于 2019-12-05 16:51:32
I just found out how easy it is (or at least is supposed to be) to do state persistence with Three20 library . However, I am unable to figure out how to use the URL mapper with a tab bar ( UITabBarController ). The situation is this: I have four tabs and different controllers for them: FirstViewController , SecondViewController , ThirdViewController and FourthViewController . I want to map those to tt://tabs/first , ..., tt://tabs/fourth respectively, and have them saved somewhere when application closes so that the previously viewed tab is automatically opened when the application starts

How to develop a SMS client for iOS?

▼魔方 西西 提交于 2019-12-04 19:34:51
my original title was How to customize TTMessageController for SMS transmission? . I changed this now because I look for any possible solution and not only those with TTMessageController . Well, I am working on an simple application in xcode4. The user should be able to send SMS from different SMS gateways . The background logic is quite simple because everything is managed by executing some http requests on an rest api. The hard thing for me now is to setup the UI and that is where I need help because I am new to iOS development. This is how I want it to be: http://img222.imageshack.us/img222

Passing url to Three20 TTURLMap

≯℡__Kan透↙ 提交于 2019-12-04 19:28:07
I am trying to pass in a URL as a parameter to a TTURLMap like this: [map from@"tt://person/(initWithURL:)" toViewController: [PersonViewController class]]; I then have a TTStyledTableItemCell with links that render like this: <a href="tt://person/http://persons.url.com/blah">Person name</a> but when I click on these links the link doesn't call the initWithURL: method in the PersonViewConroller class. I've verified things are wired up correctly by passing in a simple string. I believe this isn't working because the parser thinks the URL is part of the TTURLMap url mapping. Is there a way to

Which one is a better iOS Photo Viewer: Three20 or EGOPhotoViewer [closed]

陌路散爱 提交于 2019-12-04 19:04:44
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I am making an app for showing an image gallery in iOS, and I came across two samples. I want to know the differences between Three20 and EGOPhotoViewer . I mean both apps are developed by same developer ( enormego ). Is it safe to use

how to add json module in Three20

瘦欲@ 提交于 2019-12-04 18:40:25
I tried to use command line to add Three20 with JSON : python three20/src/scripts/ttmodule.py -p JsonTest/JsonTest.xcodeproj Three20 extThree20JSON:extThree20JSON+SBJSON this command line successfully executed without any error message. I can find "extThree20JSON+SBJSON" in Direct dependencies and its link in linked libraries. When I build my project with JSON import: #import "extThree20JSON/SBJSON.h" xcode reported: error: extThree20JSON/SBJSON.h: No such file or directory help please:( I had the same problem and just solved it. Add the extThree20JSON.xcodeproj to your project by draging it

Static library dependency compiles in simulator on Xcode 3.2.3, fails on device

◇◆丶佛笑我妖孽 提交于 2019-12-04 17:32:25
Upgrading to XCode 3.2.3 and iPhone 3.2/4.0 SDK has introduced a strange bug into my build process. I have a static library, Compton, which itself depends on three20. I build Compton as a dependency of the client apps that it powers. When I compile Compton as its own project in either simulator or device mode, 3.2 or 4.0 SDK, everything compiles fine, no errors. When I compile a client app that references Compton using the 3.2 or 4.0 SDK, simulator, targeting the iPhone or iPhone / iPad on 3.2, everything works great, no compile errors, and the app runs as expected in the simulator. When I

Multi-parameter mapping with Three20 and TTURLMap

霸气de小男生 提交于 2019-12-04 16:44:54
I'm following this tutorial and declare the following mappings in my app delegate: [map from:@"x://profile/(initWithId:)/(name:)" toViewController:[ProfileViewController class]]; [map from:@"*" toViewController:[TTWebController class]]; In ProfileViewController.m I implement the - (id)initWithId:(int)anIdentifier name:(NSString *)name selector to handle such mapping. I suppose opening URLs like x://profile/1/John Doe would invoke [[ProfileViewController alloc] initWithId:1 name:@"John Doe"] , however, this seems not to be the case. The default TTWebController class gets called every time I

Subclass non-ARC file into ARC project in Xcode 4

痴心易碎 提交于 2019-12-04 13:47:47
问题 I am using some non-ARC code in my ARC project, namely Three20. I have added all the appropriate compiler flags and all works well. However, I need to subclass some of the Three20 classes, and I'm not sure if I should add the compiler flag to my new file for non-ARC, or if the compiler will figure it out, and add the appropriate release calls. Just to recap: - ARC project in XCode 4 - Includes non-ARC code (Three20) - Need to subclass something defined in non-ARC files - Do I need to add

Using Three20 with another library and conflicting linkage flags

落爺英雄遲暮 提交于 2019-12-03 17:37:30
I'm trying to add Three20 to my project, but the -ObjC and -all_load flags are messing with another library I'm using. The other library is ZXingWidget for barcode reading, but I don't think that part is relevant. I'm reasonably sure the answer is to use force_load instead of all_load and then point to my three20 libraries, but I can't get it to work. Here's what i'm using now: -force_load ../facebook-three20/Build/Products/Debug-iphonesimulator/*.a But I get an errno=22 build fail immediately. Even if I get the force_load to work, the -ObjC flag causes issues all by itself. How am I supposed