I'm trying to overlay a custom semi-transparent image over a base image. The overlay image is stretchable and created like this:
[[UIImage imageNamed:@"overlay.png"] stretchableImageWithLeftCapWidth:5.0 topCapHeight:5.0]
Then I pass that off to a method that overlays it onto the background image for a button:
- (void)overlayImage:(U...
My colleague and I have been struggling with unit tests now for weeks. We have tried to get SenTest, GTM, and other frameworks set up, but we can never get past a gnarly ball of linking errors.
Here's where I am now with GTM. I would appreciate any guidance.
Beyond helping out on SO, if you have experience with this, I'd happily pay a ...
Hi,
I want to use libmms in an objective-c project. I've taken the project from here - http://www.tunein-radio.com/lgpl.html - and included the libmms library in my own project. This avoids me having to compile libmms myself. Initially I just want to see if it works and hopefully output some audio.
Here's what I have so far in my heade...
I am looking at a SQLite database owned by a third party process. It appears locked and has a *-journal file. What I don't know, is if the lock is shared or exclusive.
I am hoping to read from the database even though it is currently locked by that other process. I will only ever read from the database.
Currently I fail at this. I get ...
Hello,
Do anyone know how I can draw a transparent portion of image using CGContextClearRect with best performance? My requirements is that I need to draw a mask on a picture, in some cases, I need to erase it, but CGContextClearRect working slow.
I have use CGContextAddElipse to draw circle to clear the image.
Great help will be apprec...
I'm trying to retrieve data from an iPhone address book using objective-c/cocoa touch. However, I am getting this error when building:
".objc_class_name_ABPeoplePickerNavigationController", referenced from:
literal-pointer@_OBJC@_cls_refs@ABPeoplePickerNavigationController in InviteController.o
ld: symbol(s) not found
I have already a...
I am new to iphone development.I am sorting a mutable array with respect to date.But it is sorting Using the date parameter consider it as string.I want to sort it by date.How can i achieve that .Please help me out.
NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@"pubDate" ascending:YES];
[stories sortUsingDescrip...
I am trying to pass through touches from a custom UIView to a UITableView underneath (the UIView is directly on top of the UITableView). However, it does not seem to be working.
In my custom UIView, I have tried all of the following (I'm using touchesMoved as an example but I've implemented this for all 4 touch methods)
- (void)touche...
I've seen some apps are using alternating rows background in their predicate editors, but I can't figure out how they do it.
...
Let mFoo be an instance variable that's a property that has been synthesized, hence it has default setter and getter. I am wondering if one needs to be concerned with the performance hit of using
self.mFoo vs.mFooif mFoo is accessed repeatedly in logical statements.
It seems to me that if one is absolutely certain that a method does ...
Hi!
Anyone can tell me that how can I get the total life age (usage time), Modal Number, software version of the iPhone using obj c.
Also how can we check that iphone is jailbroken or not using objective C.
Thanks
MAS
...
Hi,
I would like to know what would be the most elegant approach to extract digits from a double in ObjectiveC using Cocoa Touch (this needs to run on an iPhone):
Let's suppose you have a double : 1.423
How would you get each "1", "4", "2", "3", that compose the double in several variables ?
In the end I would like to get something...
Hi there,
The Situation
I populate my TTTableViewController with a TTListDatasource(with TTModel).
My didSelectObject methods opens a TTViewController.
The Question
I d like to show more informationen in the TTViewController.
1.Question: Should i hand over the datasource (and run a new query) or should i hand over a specific VO (with ...
See the screenshot below, this is the only leak the Leaks Instrument finds in my app. Seems odd that main is leaking since it's out-of-the-box. Is this common?
...
Okay I am just totally too close to this I think. I have a tableview. In that table view everything is working except section 2 row 0.
AND -- before anyone asks...I know I am not using the *imgWordView (in the code below) and that is why the icons are not showing but i do not know where to add it to the subview so i can place it at c...
I have a UITableView where a cell needs to be filled in with a date by selecting it through a pickerview. Instead of pushing the pickerview onto the navigationController I would want to let it slide up halfway into the screen with the tableview still visible in the upper half of the screen. I've seen some apps doing this neat effect befo...
I'm hoping someone can help me debugging an incredibly frustrating Core Data crash. I initially load data into two entities (representing 'speakers' and 'titles') I then load a third entity for 'sessions' and try to set relationships to 'speakers' and 'titles'. (from session to speaker and title is one-to-one. from speaker/title back...
I have a TableView with a CustomCell . In the CustomCell is a UIImage with "setUserInteractionEnabled" ...
The TableView is into a NavigationController... a normal didSelect with a push to a new view works fine..
i make this in the customcell for the UIImage:
- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UI...
The documentation in the appscript objc-trunk randomly uses ruby in the section called "Performance Issues".
require "appscript"
include Appscript
desiredEmail = '[email protected]'
p app('Address Book').people[
its.emails.value.contains(desiredEmail)
].name.get
How would this be written in Objective-C? I apologize ...
Hi,
I am trying to prepopulate my SQlite Table from a Text File - alltough it is compiling fine, no rows will be inserted:
NSLog(@"Insert Table for English");
char *errorMsg;
NSString *defaultDBPath = [[[NSBundle mainBundle] resourcePath ] stringByAppendingPathComponent:@"english.sql"];
NSLog(@"DefaultPath: %@", default...