Basically I'm trying to find a solution to my issue with sharing an object. I've had a look at SpringBoard's implementation and it looks as if SpringBoard is providing a framework which can be used to retrieve SBDisplay objects (which are basically CALayers).
I know this specific issue is related to iPhones, but I also know that this is...
Hi,
i´ve got a custom-UIScrollView-class. On the "- (id)initWithFrame:(CGRect)frame"-function i set different properties, but when i want to access a property like "self.zoomScale", it´s always "null".
Here´s my definition:
"@interface MyScrollView : UIScrollView <UIScrollViewDelegate> {.."
And here´s the .m-file:
...
- (id)initW...
Hi,
I want to add simple swipe gesture recognition to my view based iPhone project. Gestures in all directions (right, down, left, up) should be recognized.
It is stated in the docs for UISwipeGestureRecognizer:
You may specify multiple directions by specifying multiple UISwipeGestureRecognizerDirection constants using bitwise-OR o...
Hi all,
I have used sqlite database in some of my iphone applications but as you know it is a lot harder than other languages such as java and php to use database. Is there any way to use database easier !? I found a framework in sourceforge here : http://mysql-cocoa.sourceforge.net/ but I think it is not for cocoa-touch. Is there any ot...
I'm using an UIScrollView and I have an image that indicates to the user that there is more content that they can scroll through vertically. I would like this image to be hidden when the scrollview is all the way at the bottom. Is there a way to do this? Would I have to subclass UIScrollView and make my own?
...
Hi, I call a function with performSelectorInBackground, and in this function, I declare
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
at the beginning
[pool release];
at the end
But in the console, I have this message:
2010-07-23 10:58:30.277 ProjetMission[5914:6913] void _WebThreadLockFromAnyThread(b...
in controller
scrollView.autoresizesSubviews = YES;
in viewDidLoad of controller I load view object from Nib and
[scrollView addSubview:presentationController.view];
At this point scrollView itself has correct adjusted sizes(which is within tab view controller). The problem is that the layout of newly loaded view object is not upda...
We're getting ready to deploy a mobile version of our website and we'd like to track the iPhone orientation within google analytics. I'm guessing we should do this as a custom variable because I don't see any pre-defined way to track this under the mobile tab for analytics reports. I'm not sure how to detect the current orientation of th...
Just run into a tricky NSFetchedResultsController problem.
The following code works fine in all cases EXCEPT for the very first entry to the Core Data database when it reports 2 rows!
id <NSFetchedResultsSectionInfo> sectionInfo = [[fetchedResultsController sections] objectAtIndex:section];
numberOfRows = [sectionInfo numberOfObjects]...
I am detecting if the user has pressed down for 2 seconds:
UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc]
initWithTarget:self
action:@selector(handleLongPress:)];
longPress.minimumPressDuration = 2.0;
...
Hi,
I work with dashcode.
I write other file html inside to my project but i don't undestand how to modify this file grafically, only index.html is modificable.
best regards
Samantha
...
Good day all;
I am not sure what has changed to prevent this from working. On iOS 3 SDK, the following code worked fine in a CATiledLayer class:
- (void)drawInContext:(CGContextRef)context {
UIImage* image = [[ResourcesManager sharedResourcesManager] getUIImageFromArray:Image_Cell_Background Index:[mazeCell zone]];
UIColor* col...
Hi.
I'm loading an UIImage UImageView. The UImageView has identical width and length, and when I load an UImage it gets streched.
Is there any way to load my UImage inside my UImageView without change in its proportions ?, I want the image to fit inside my UIImageView without deformation.
Thanks.
...
I am getting buffer with its length in a function
(void)putEncodedData:(void *)data ofSize:(unsigned)size
I want to create a custom class for this buffer data with name AudioData with variables data,size . How to set its @property attribues ? Please help me. Thanks in advance
...
Currently the code I need to modify uses a tabBarController with a single selection inside it which takes the user back to the root view, but because it is a tabBar then the whole of the tab is selectable and I need it so only the button positioned in the middle of the tab bar is selected.
I am fairly new to this but know it is not a ta...
I'm working on a IPhone web application. I just starded playing with the webkit-transform and webkit-animation CSS rules. I've some questions: for example, is there real advantage in using these instead of, say, jQuery.animate(...)? The resulting animations don't seem to be that much accelerated and fast. Let's explain better: I've a ser...
Hi all,
So far I've managed to create this method for inserting into a SQLite database on the iPhone:
- (void) insertToDB :(NSString *)Identifier :(NSString *)Name
{
sqlite3 *database;
if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK)
{
char *sql1 = "INSERT INTO table VALUES ('";
const cha...
I would like to know if there is a possibility to detect if the user is in call from an application that is currently in background.
Or, receive a notification when the call is ended if the call was initiated from my app.
Or, even more than that - is there a possibility to detect which app is in foreground?
I don't believe that this is...
Good day all;
I am trying to manually (not using sublayers) draw images within a CATiledLayer but it is not behaving as it should with the defined solution. I undertand that when you call 'CGContextDrawImage' you must scale and translate so as to flip it but I cannot for the life of me, get it to work.
I have a method called
- (void...
Hello
I am using async NSURLConnection to connect to a web site from iPhone. Handle didReceiveResponse is activated on response and I am trying to get all cookies, by using allHeaderFields from NSHTTPURLResponse
I see many hreader, but no Set-Cookie - it looks like iphone simulator just ignores them...
And I am sure cookies are present...