I am switching tabs through code with this:
self.tabBarController.selectedIndex = 1; // or any other number
The switching between the tabs works fine. I'm wondering if there is a way to animate the transition. It'd have to be only in this instance, not the total tabbarcontroller in general. That is to say that the transition will only...
Simply put: What is the most effective way to share / reuse code between iPhone and Android builds?
The two most common scenarios I think would be:
Blank slate new project, knowing ahead of time there is a large chunk of reusable logic that needs to run on each device.
Existing iPhone code base, porting of C, C++ and Objective-C to th...
Is the product item a copy, or just a reference to the object in the NSArray? Does it need to be released? Considering there is no alloc, I assume there is no need for release, correct?
ProductItem *item = [appDelegate.productTextList objectAtIndex:[indexPath row]];
...
Hi,
I m working on one of the project in which I have to save the captured image in IPhone Device Photo library.
What I want to ask how to implement this through code.Here below I m pasting my codes :--
-(void)imagePickerController:(UIImagePickerController *) picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
[picker dismiss...
Hello,
I added ffmpeg iphone port into my library and I can able to use a few of its functions like avcodec_init(),.. without any errors.
But when I include this function call "avcodec_register_all" Xcode is giving error after compilation
The error message is :
*---------------
ld: ldr 12-bit displacement out of range (4276 max +/-409...
I created an iPhone application for the App Store.
I hear that some things are not allowed in the App Store. For example you can't copy existing iPhone functionality.
I didn't find information about these App Store restrictions.
A friend tell me that I can't develop my own UITableViewCellAccessoryXXX (I mean something different than...
Helloo!
I faced a really stranged problem recently. I am doing a timetable organizer, and I draw each event in a DayViewController with Quarz 2D, then I add a "glass effect" picture (PNG).
But randomly, as I switch between days, the layout go really bad.
Here is a link to see the good appearance and below the bad one :
http://toucotton...
-(CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
if([tableView.somethingMagicalHereThatAllowsMeKnowWhichCellItIs isEqualToString:@"CellType"]){
return 50;
}
return 25;}
I have tableView with multiple cells of different types, and I want to style them accordingly, but the problem is th...
I have a UIScrollFrame that contains multiple UIImageViews.
What is the correct way of supporting zoom in such a control?
Which view should 'viewForZoomingInScrollView' return?
...
My plan is to display a list of items alphabetically in a table view that has about 100 items. Each item has an image, a list of times and a description that the tableview will drill down to. What I am struggling with is the correct way to store and load this data. Some have told me that a plist will be too data heavy and that core da...
Is there any pattern how to deal with a lot of object instantiations (40k per second) on a mobile device? I need these objects separately and they cannot be combined. A reusage of objects would probably be a solution. Any hints?
...
Hello,
I'm creating a link to open my App and pass some data in the URL.
When I add the query parameter ? my link get broken.
NSData *fileData = [NSData dataWithContentsOfFile:dataFilePath];
NSString *encodedString = [GTMBase64 stringByWebSafeEncodingData:fileData padded:YES];
NSString *urlString = [NSString stringWithFormat:@"myApp:/...
This might be iPhone specific, I'm not sure. The compiler doesn't complain when building for the simulator but when compiling for device it throws some funky errors when I try to set properties for references to objects. Eg,
@property (nonatomic) CGRect &finalFrame;
and the coressponding synthesizer
@synthesize finalFrame;
for a...
Does the iPhone's SQLite implementation support the full SQLite 3 standard? That is, is every function in the SQLite specification present and standard-compliant?
If not, can someone point me to a document which explains what the differences are?
Sorry if this is a repeat question.
...
Hi!
I have to write an iphone application that controls a device. This device exposes a telnet based interface. The application should ideally have user access control and customizability for each user.
I was thinking of writing C++ classes that would communicate with the device using sockets. This functionality can then be exposed th...
I want to be able to draw using this as my stroke. How would I do this as efficient as possible, and on the fly drawing, I was thinking CGPatternRef, but I really don't know how to do that.
Edit:
It does not need to warp to the path. I just coultn't fix that issue in Illustrator.
...
I am using the Reachability code and also doing a server login. What I am finding is that the reachability is responding with a negative, even though I have already logged into the server, and then reachability returns positive.
2010-03-04 18:39:36.088 FLinkerDebug[18472:207] reply from server: 3/4/2010 6:40:21 PM15bcc06c-2c20-43cb-ab8...
Hi,
I am new to using the SQLite database in iphone apps. I have created a database with login table in it and added the database to the project. Login table contains 3 fields "ID", "Username" and "Password" fields. I am entering the username and password in the textfields of the view. Now i am looking of how to retrieve the id from th...
I'm calling the following code from drawRect
- (void) drawPartial:(UIImage *)img colour:(UIColor *)colour {
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSaveGState(context);
CGContextTranslateCTM(context, 0.0, self.bounds.size.height);
CGContextScaleCTM(context, 1.0, -1.0);
CGContextDrawImage(c...
Hi,
My app uses a landscape only view and requires the user to answer a series of questions using a UISlider to select their answer before clicking "Next" to move to the next question.
The user can't go back to previous questions so only has one "direction" of travel. Once the final question is answered the app will return them to the...