Search
Goodies

Social Networks
Designs I Like

Entries in questions (28)

Friday
Nov272009

Asking for reviews, does it works ?

I've been giving 7 copies of uP@ssw0rdz! in the last 7 days in order to entice users to write reviews of it in the App Store. Does the strategy works so far ? Nope. Seven copies of something called an application; the result of my hard work, nothing in return, not even a comment on my blog! In version 2.0, I've also added a counter in the application that tells me how long the user has upgraded the software and, after more than 3 days, I present a message asking the user if he could write a review of it in the App Store. Does this work ? So far, nope. What am I doing wrong ?

Friday
Nov202009

Question for the experts

How can we put a UIBarButtonItem with a previous & next button on the top rigth corner like in Apple Mail ?

Monday
Nov092009

The 512x512 pixels image question

On iTunes connect, we must provide a big 512x512 pixels image that may be used by Apple in case they promote the application on the App Store "What's hot" or "New" pages. Here is mine that I will upload as soon as version 2.0 is approved by Apple.



The problem is: the promotional graphics used by Apple in the App Store is not square but rectangular. How Apple is fixing this ?

Monday
Aug242009

New poll: How to manage 100 apps installed on the iPhone ?

OK, here is a new poll:


How Apple should allow users with more than 100 applications installed on their device ? And what about having 300 applications in our iTunes library... Should they look at solutions like Stacks ? Are the rumors about iTunes 9.0 the best solution ? What are your ideas ? Comments and suggestions are welcomed !

Sunday
Jun142009

Reading & Writing complex arrays of data

I'm trying to devise a way to implement some data persistence in my application. I will need to use maximum 50 arrays of objects (so, an array of 50 arrays which contains different types of values (NSNumber, NSString). The application will provide default arrays in the application bundle in the form of a plist that will ne to be read from the application bundle then written to disk in the /Documents when the application launch for the first time. Afterward, any read or write operations will need to go in the /Documents in the application sandbox.

I don't want to use SQLLite as the amount of data in the NSMutableArray will be minimal. Nor do I need NSMutableDictionary because the key-value pair for my need doesn't make any sense.

The default data structure will be done in a pList that I include here as an example and that will be part of the application bundle:

So, this is an array of arrays.... does an initfromcontentsoffile will parse this file and magically I would have a NSMutableArray that I can use as is in my code ? Like objectAtIndex:0 would return the first array of the 50 arrays ?

The plist is as follow:

0

2

Default

0

10000001100100000001100

3

1

1

0

111111111111111111000011

3

0

0

1

111111111111111111000011

0

2

High

0

10000001100100000001100

5

1

1

1

111111111111111111000011

5

1

1

1

111111111111111111000011


Monday
May252009

Planning the next version, already

Now that my first application has been submitted to the App Store, I want to prepare for the next version. I want to know what you guys are doing. I want to know what do you do within Xcode:

  • Do you keep developing in the same code base ?
  • Are you creating a "new code branch" ?

Thanks for your input.

Thursday
May212009

At least I got it (flashing effect)

So, here is the deal for creating a very simple animation that looks like a flashing effect.


theFlashView.alpha = 0.0f;
[[UIApplication sharedApplication].keyWindow addSubview:theFlashView];
[UIView beginAnimations:@"show" context:NULL];
[UIView setAnimationDuration:0.4f];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
[UIView setAnimationDelegate:self];
theFlashView.alpha = 1.0f;
[UIView commitAnimations];

[UIView beginAnimations:@"show" context:NULL];
[UIView setAnimationDuration:0.4f];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
[UIView setAnimationDelegate:self];

theFlashView.alpha = 0.0f;

[UIView commitAnimations];

Wednesday
May202009

UIView animations, what am I missing ??

Hi everybody,

I'm still trying to implement a simple animation effect for my application. It consists of a flashing effect that should look pretty similar to the one we get when we take a snapshot of the screen on the iPhone or iPod touch.

I made a NIB with a UIView where its alpha is set to 0.3 of a specific color. Then, I created a new UIViewController Class called: FlashingViewController. Then, In the NIB, I made the Class set to this new FlashingViewController.

Now, In the view controller, in the viewWillAppear, here is the code:

-(void)viewWillAppear:(bool)animated
{

float alphaValue = 0.3f;
[UIView beginAnimations:@"show" context:NULL];
[UIView setAnimationDuration:0.3f];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationDelegate:self];
do
{
self.view.alpha = alphaValue;
alphaValue = alphaValue + 0.1f;
}
while (alphaValue <>
do
{
self.view.alpha = alphaValue;
alphaValue = alphaValue - 0.1f;
}
while (alphaValue > 0.0f);
[UIView commitAnimations];

[self dismissModalViewControllerAnimated:NO];
}

Finally, I present this UIViewController with this line:

[self presentModalViewController:aFlashViewViewController animated:NO];

So, I get the view, no animation, no flashing effect whatsoever... nothing. Also, the UIView don't dismiss itself!

Ouch, please help me !

Tuesday
May122009

Memory management and Interface Builder

I'm about to finish the basic development of my application. Next, I'll concentrate on code optimizations and memory management in order to prevent memory leaking and provide a small memory footprint application. 


My application user interface was mainly done with Interface Builder, i.e. very little UI implementation is done programmatically. So, I'm using lots of IBOutlets and IBActions and @synthesize directives. 

For each IBOutlet, there is a corresponding @property (nonatomic, retain) IBOutlet ... So, variables content defined like this are not allocated directly by my code but by the NIB loading process when my application runs. So, my understanding is that I don't "own" the memory allocation. So, I don't need to release it myself! Right ? 

Tuesday
May122009

How to implement a "flashing effect" ?

I want to provide a feedback in my tabbar based application by implementing a brief flash effect that covers the screen... just like the one we get when taking a snapshot on the iPhone by pressing Home Button and Power ....


I'm doing my UIView in interface builder and I have a variable that is hooked to this UIview... which itself is white... What to do next ? Thanks for your help !