2013年3月22日 星期五
iPhone, iPod, iPad and Firmware/Software Download Apple TV firmware as well!
http://www.felixbruns.de/iPod/firmware/
http://www.jailbreakauthority.com/downloads/download-ios-firmware/
2012年12月7日 星期五
iPad Programming Tutorial – Hello World++
Introduction
Now, that the iPad has been released, I’m sure you are all scrambling for ideas on how to snag a piece of the maket in the imminent gold rush. iCodeBlog is going to help you on your journey with a series of iPad tutorials to come.
Since the iPad uses the same SDK as the iPhone, all of the code under the hood is almost identical. Actually, when looking at the new and changed API classes, you will realize that most of them are user interface related. This is good news for us since we have already been coding iPhone.
While this tutorial is called “Hello World”, it is really much more than that. I assume you already have working knowledge of iPhone/Objective-C programming.
What We Will Be Creating
In today’s tutorial, I will be showing you how to create an iPad project that uses the UISplitViewController to display content in 2 separate panes. We will also be touching on some of the new design/UI patterns and giving an overall introduction to iPad programming.
The project will be based on one of my earliest tutorials that displayed a list of fruitin a UITableView and drilled down when they were selected. We will be expanding on that example and creating something that will look like this.
It uses a UISplitViewController to display a UITableView on the left and a UIView with a UIImageView subview on the right. This project is actually quite simple to create as the template code provides much of the code we need to get started.
Getting Started
1. Make sure you have downloaded the 3.2 SDK formhttp://developer.apple.com/iphone/. The iPad simulator will come with this download.
2. Download the resources needed for this project and unzip themiPadHelloWorldResources.zip . (contains image files and a plist we will be using to load the images)
Creating The Project
Starting a project for the iPad is no different than starting one for the iPhone. When you open XCode and select File->New Project, you should notice the addition of a Split View-Based Application. Select this and name it iPadHelloWorld.
This will create a basic application with a UITableView on the left and a UIView on the right. It will even populate the table with some sample elements. It will add the following files to your project.
Here is a brief description of each of these files:
- iPadHelloWorldAppDelegate – This is similar to every app delegate. If you look in the application:didFinishLaunchingWithOptions method, you will see that the UISplitViewController is being allocated with the MasterViewController and DetailViewControllers.
- MasterViewController – A UITableViewController, nothing fancy. It will be handling the view on the left hand side.
- DetailViewController – This handles the content view that you see on the right hand side. We will be updating this as the user selects different rows in the table to the left. This simply houses a single view.
Go ahead and press Build and Run to check out the application. If you haven’t already done so, play around with the iPad contacts and settings apps as well.
Note: When you launch the application, you will only see the main view since the simulator runs in vertical mode. To see the views side-by-side, rotate the simulator by clicking “Hardware -> Rotate Left/Right”. You can also press CMD->Arrow Left/Right on the keyboard.
Importing The Project Images
Once you have had some time to play with the new iPad project, you will now need to import the images needed for this project. After downloading and unzipping the files in from this tutorial, drag them into the project folder called “Resources-iPad”.
XCode will prompt you to copy the files, check yes and click OK.
Make sure you include all 4 images files as well as the file named fruits.plist.
Displaying The List Of Fruits
Displaying our fruits list is no different than displaying data in any other UITableView. Let’s begin by opening MasterViewController.h and adding a declaration for our fruits array.
#import @class DetailViewController; @interface MasterViewController : UITableViewController { DetailViewController *detailViewController; NSArray * fruits; } @property (nonatomic, retain) IBOutlet DetailViewController *detailViewController; @property (nonatomic, retain) NSMutableArray *fruits; @end |
As you can see, there is nothing new here. We simply declare our fruits array and create a property for it.
We will be loading the fruits from the plist file that you imported into your project in the last step. Loading content from a plist file is a very quick and easy solution when you don’t require a database.
Open up MasterViewController.m and add the following line of code to your viewDidLoad method.
- (void)viewDidLoad { [super viewDidLoad]; self.fruits = [[NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"fruits" ofType:@"plist"]] retain]; } |
The file fruits.plist is essentially an array that has been written out to a file. If you open it up, it looks very similar to XML. Now that our fruits array has been populated, let’s implement each of the UITableView delegate and datasource methods to populate the table.
UITableView datasource methods
- (NSInteger)tableView:(UITableView *)aTableView numberOfRowsInSection:(NSInteger)section { // Return the number of rows in the section. return [fruits count]; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"CellIdentifier"; // Dequeue or create a cell of the appropriate type. UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; cell.accessoryType = UITableViewCellAccessoryNone; } // Get the object to display and set the value in the cell. cell.textLabel.text = [self.fruits objectAtIndex:indexPath.row]; return cell; } |
Nothing special… We first tell the tableview that we want fruits.count (4 in this case) number of rows.
Next, we display the name of the fruit in each tableview cell. If you want to learn more on UITableViews, read this tutorial.
UITableView delegate methods
- (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { /* When a row is selected, set the detail view controller's detail item to the item associated with the selected row. */ detailViewController.detailItem = [self.fruits objectAtIndex: indexPath.row]; } |
Here, we are simply setting the detailItem property of the detailViewController to the selected fruit. We will discuss this property later in this section, but for now all you need to know is that its type is id.
At this point, go ahead and press Build and Run to see your code in action. You should see something that looks like this:
It displays the list of fruits, but nothing happens when you select a cell (well the title of the detailView may change).
Now that we have our list of fruits displayed, we now need to implement the code to display their corresponding image.
Displaying The Fruits
Displaying the selected fruit is actually quite simple. The first thing we need to do is add a UIImageView to our detailView.
Start by adding the IBOutlet for the image view. Open up DetailViewController.h and add the following code:
@interface DetailViewController : UIViewController { UIPopoverController *popoverController; UINavigationBar *navigationBar; id detailItem; IBOutlet UIImageView * fruitImageView; } @property (nonatomic, retain) UIPopoverController *popoverController; @property (nonatomic, retain) IBOutlet UINavigationBar *navigationBar; @property (nonatomic, retain) id detailItem; @property (nonatomic, retain) IBOutlet UIImageView * fruitImageView; @end |
All of the code here comes with the template except the code to add the IBOutlet UIImageView. Once you have added this open up DetailView.xib in interface builder.
Add a UIImageView on to the view and size it to 500×500.
Now, click on the File’s Owner object and open the connection inspector (Tools -> connection inspector).
Drag from your imageView IBOutlet to the UIImageView and release. The UIImageView is now connected to your outlet.
Note: If you want the images to not skew, set the content mode of the image view (in the attributes inspector) to Aspect Fit.
Now that the imageview has been connected, it’s time to write the code that updates it. Close Interface Builder and open the file DetailViewController.m and add the following lines to the setDetailItem method:
- (void)setDetailItem:(id)newDetailItem { if (detailItem != newDetailItem) { [detailItem release]; detailItem = [newDetailItem retain]; // Update the view. navigationBar.topItem.title = detailItem; NSString * imageName = [NSString stringWithFormat:@"%@.png",detailItem]; [self.fruitImageView setImage:[UIImage imageNamed:imageName]]; } if (popoverController != nil) { [popoverController dismissPopoverAnimated:YES]; } } |
Most of this code has been added by the template and I won’t discuss it too much in this tutorial. But for now, the important additions are the lines that load the image based on the name of the fruit and the one below it that sets the image property of the image view.
There you have it! Build and go and the application should function as mentioned. Here is another screenshot of the final product.
Another Cool Feature Of SplitViewController
When in vertical mode, the SplitViewController gives you another new UI element called the UIPopOverView. Collin will have a tutorial up soon on this view, but the figure below shows you what I’m talking about.
When the device is vertical, it will automatically rotate your view and provide a UIPopoverView when the “Master List” button is pretty. (BTW this button is also customizable).
You may download the source for this tutorial here iPadHelloWorld.zip.
2012年7月31日 星期二
[iOS / Android] iPhone / iPad / Android 的 Jubeat ~
You can add the source http://cydia.datael.co.uk in Cydia,
Android:
Source: http://anappsnet.blogspot.hk/2011/07/iphone-v110214-31-jubeat.html
then search iBoogie
Android:
Source: http://anappsnet.blogspot.hk/2011/07/iphone-v110214-31-jubeat.html
2012年6月15日 星期五
Top 5 Repos to Download Cracked Cydia Apps
xSellize Repo:
xSellize is probably the largest repo which is full of cracked Cydia apps. If you are unable to find any cracked app in this repo, you can request it directly on xSellize forum. If you are a VIP member at xSellize.com, you can generate your custom xSellize repo address from here and if you are a regular xSellize user (or a guest), use the repo address below.
Repo Address: http://cydia.xsellize.com
Famous Apps: AdBlock Cracked, AnyRing Cracked, biteSMS Cracked, blueStream Cracked, CallLogPro Full, Click2Call Cracked, cPanel Control WHM Cracked, DreamBoard Cracked, EasyWakeUp Cracked, FindFile Cracked, GV Mobile + Cracked, Celeste Cracked, Cytact Cracked, FaceBreak Cracked, FakeLocation Cracked, Firewall iP Cracked, FolderEnhancer Cracked, gpSPhone Cracked, iAccounts Cracked, iBirthdays Cracked, iDvorak Keyboard, iLostMyi Cracked, Insomania Pro Cracked, IntelliDial Cracked, iPlayTunes Cracked, iReply Cracked, iStrings Cracked, iTorrentLeachPro Cracled, Locktopus Cracked, Mark Read Cracked, MusicBarExtended Crack, My 3G Cracked, PopMark Cracked, QuickDo Cracked, RockRing Cracked, SecretSMS Cracked, Signal Cracked, SMusicPro Cracked, SocialMe Cracked, Tlert Cracked, TwitFeed Cracked, ZapBrowser Cracked
SiNfuL iPhone Repo:
SiNfuL iPhone repo is not a large repo like xSellize but the best thing about this repo is that it has the most updated cracked versions of Cydia apps. Whenever a developer updates his paid Cydia app, hackers at SiNfuL are always first to provides you with its crack. Whenever you download any cracked Cydia app, do check SiNfuL repo to grab the most latest version!
Repo Address: http://sinfuliphonerepo.com
Famous Apps: Barrel Cracked, biteSMS Cracked, Celeste Cracked, Display Recorder Cracked, FaceBreak Cracked, Folder Enhancer Cracked, HapticPro Cracked, iBlacklist Cracked, iBlueNova Cracked, iconNotifier Cracked, iFile Cracked, Infiniboard Cracked, Infinidock Cracked, Infinifolders Cracked, iProtect Cracked, iRealSMS 3.0 Cracked, Lockdown Pro cracked, Multifl0w Cracked, MyWi 4 Cracked, SBRotator Cracked, TetherMe Cracked, YourTube Cracked, 3G Unrestrictor Cracked
iModZone Repo:
This repo is small in size because it do not host any useless cracked app. You will not find any theme or ringtone in this repo as all it contain is cracked versions of Cydia utility apps. Almost all apps in this repo are cracked and are free for download.
Repo Address: http://cydia.imodzone.net
Famous Apps: Action Menu Plus Cracked, AppLocket Cracked, Attachment Saver Cracked, Auto Silent Cracked, CallClear Cracked, CallController Cracked, CyDialer Cracked, EasyWakeup Full, gpSPhone Cracked, GV Mobile + Cracked, HapticPro Cracked, Iconoclasm Cracked, iFile Full, IntelliScreen Cracked, iWep Pro, LockInfo Cracked, MultiExchange Cracked, NoCyRefresh, OpenBook Cracked, ProSwitcher Cracked, Resupported Cracked, Safari Download Manager Cracked, Snappy Cracked, SnapTap Cracked, TorrentTRAK Cracked, Wi-Fi Sync Cracked
Insanelyi Repo:
Insanelyi is the most well-organized repo to find cracked Cydia apps as it provides you with the screenshots, number of downloads and detailed description of every hosted app. It also has a list of top 25 most downloaded Cydia apps of all time. You can browse apps compatible with your iOS version, tweaks, essentials, SD and HD Cydia apps separately.
Repo Address: http://repo.insanelyi.com
Famous Apps: Barrel Cracked, iFile Cracked, MyWi 4.0 Cracked, Infinidock Cracked, Gridlock Cracked, MobiltTerminal (New), FolderEnhancer Cracked, LockInfo Cracked, Barrel 2 Cracked, AndroidLock XT, FakeClockUp Cracked, biteSMS Cracked, 3DBoard Cracked, YourTube 2 Cracked, Graviboard Cracked, Afc2add, iAccess 4 Cracked, SBRotator for 4.x, Safari Download Manager Cracked, Multifl0w Ceacked, ScrollingBoard Cracked, Infinifolders Cracked, SkrewCommon for iOS4, vWallpaper for iOS4
iHackStore Repo:
Just like xSellize, iHackStore repo is a huge repo which has tons of cracked Cydia utility apps. Almost all cracked utility apps which you will find in SiNfuL and iModZone repo, can be easily found in this repo as well.
Repo Address: http://ihackstore.com/repo
2012年5月27日 星期日
Dashboard X Adds Live Homescreen Widgets to Your iPhone / iPod Touch / iPad
If you've ever wanted Android-esque widgets on your iPhone, Dashboard X is a new tweak for jailbroken iPhones that allows you to add widgets created for Notification Center anywhere on your home screen.
Dashboard X sits in your settings menu and pulls all of your preexisting Notification Center tweaks into it automatically (more Dashboard X specific widgets are likely on their way). When you hold your finger down on an icon to enter the re-arrange mode you can tap on any blank area and add a widget. These include simple things like the weather widget, or tweaks like NCSettings or SBSettings. Once you pick the widget you can move it anywhere on the screen. The widgets integrate nicely with the home screen and the process is incredibly simple and intuitive. Dashboard X is a $1.99 download in the ModMyi repository.
P.S. If you wanna get the free version, please add this source in your Cydia below;
www.xsellize.com
2012年4月11日 星期三
Siri 取代品 Sara 登场!全线 iOS 装置也能用!
Source: http://www.newmobilelife.com/2012/02/10/sara-tutorial/
近日,Cydia 上多了一套名为 Sara 的程式,它的作用是为没有 iPhone 4S 的用户加入 Siri 取代品 Sara!Sara 不像 Siri 只能服务 iPhone 4S,它可以对 iPhone 4/3GS/3G/iPad 1/iPad 2 甚至 iPod Touch 4G 也能用!当中最令人站长测试过后,实在觉得超强!效果跟 Siri 的确十分接近!
Sara 有一些功能是 Siri 也没有的!详细列表如下:
- Find local business & direction (everywhere, not only US andCanada)
- Search for song from
- Call, message
- View the movie schedule from nearest cinema
- Read newspaper (via RSS)
- Check mail
- Remote control PC
- Search videos from youtube, search google, Wikipedia
- Toggle on/off system functional (wifi, bluetooth, 3G, et cetera)
- Translate, support > 37 languages
- Read barcode, qr code then find price, local business sell this
- OCR feature (Image to text), you can use Sara instead of scanner
- Social network support, user can take a photo then send to their facebook, twitter
- Search product price, local business
- Open apps
- Weather
教学
2. 进入 Cydia 到“软件源”,再选“设定”及“添加”,然后将输入 http://isoftjsc.com。(请更新 Cydia 发多试几次加入才行,站长也试了 3 次才成功!)
3. 重新 Refresh 后到“搜索”中输入 Sara,我们可以看到 Sara(iPhone 3GS/4,iPod 3/4,iPad 1/2)。
4. 安装这套工具后,自动 ReSpring。回到 iOS 桌面看到 “Sara” 图示出现了!
5.进入后,我们可以如 Siri 一般问 Siri 问题,它就能够回答你!
6. 右下方有设定,我们可设定名字及城市地点。
訂閱:
文章 (Atom)