ipzyh

ip

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  2 随笔 :: 7 文章 :: 0 评论 :: 0 Trackbacks

2012年10月19日 #

@import url(http://www.cppblog.com/cutesoft_client/cuteeditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.cppblog.com/cutesoft_client/cuteeditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.cppblog.com/cutesoft_client/cuteeditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

一、证书

二、信息
此部分来源: http://www.cnblogs.com/jrvin/archive/2010/08/16/1800659.html
App store 增加新应用的步骤。

1. 访问iTunesConnect,地址为https://itunesconnect.apple.com,用有上传权限的账户登录。

2. 选择“Manage Your Applications

3. 此时可以看到目前已有的应用,此时点击左上角的“Add New Application”

4. 进入下图界面,此时输入下述内容


App Name:应用名称,一旦命名确认后,曾经用过的名字在其他应用中不能再用,所以此处需慎重,可以优先考虑用标准不含附加内容的名字。

SKU Number:应用的独立标示,和其他的不重复即可

Bundle ID:和开发中使用的Bundle ID保持一致,如果不一致,后期无法上传应用的二进制文件。

5.设定可用日期和价格

6.设定应用的信息

设定版本号、描述、主要归属分类、次要归属分类、关键字、版权、联系邮箱、服务网址、应用的独立网址(可选)等。

选择是否有暴力、成人等等内容,全部选择无。

上传512×512的Logo、截图(应该最后上传的显示在第一个位置,有待进一步确认),上传完毕后,选择“Save Changes”

7.进入如下界面,此时可以看到状态(Status)为“Prepare for Upload”,点击“View Details”或点击图标进入详情

8.选择右上方的“Ready to Upload Binary”。

9.根据应用实际情况选择是否加密,一般选择“No”

10.点击“Save Changes”进入下一步,由于当前版本的App Store需要用“Application Loader”(只能运行在Mac系统下)才能上传二进制文件,所以此步会提示下载“Application Loader”,点击“Continue”

11.确认后,可以看到状态(Status)变为“Waiting For Upload”,此时在Web上面进行的工作基本完成。

12.在Mac系统中用下载安装的Application Loader进行上传,在Application Loader中会显示所有的状态为“Waiting For Upload”的应用,在列表中相应的应用即可,上传前会询问是否已经在iOS4测试过,如果测试过选择“Yes”。

13.上传完毕后,在iTunesConnect中可以看到状态(Status)变更为“Waiting For Review”,进入等待审核状态,至此上传过程完毕。


注:XCode4.2 No suitable application records were found.

No suitable application records were found.
Please make sure that you have set up a record for this application on iTunes Connect.

在网页上面还有个按钮“Ready for upload”, 点了以后状态就成了“Waiting for upload”
这个时候才能上传。

 


三、在Product中完成Archives,Validate、Distribute,而Distribute完成才是App上传成功!

我是在Application Loader中 加载app.zip完成上传的。

https://itunesconnect.apple.com/docs/UsingApplicationLoader.pdf

posted @ 2012-10-19 14:08 竹 阅读(467) | 评论 (0)编辑 收藏

2012年10月12日 #

@import url(http://www.cppblog.com/cutesoft_client/cuteeditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); #import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>

@interface MKMapView (MapViewUtil)

- (void)setCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate
                  zoomLevel:(NSUInteger)zoomLevel
                   animated:(BOOL)animated;

@end 

#import "MapViewUtil.h"

#define MERCATOR_OFFSET 268435456
#define MERCATOR_RADIUS 85445659.44705395

@implementation MKMapView (MapViewUtil)

#pragma mark -
#pragma mark Map conversion methods

- (double)longitudeToPixelSpaceX:(double)longitude
{
    return round(MERCATOR_OFFSET + MERCATOR_RADIUS * longitude * M_PI / 180.0);
}

- (double)latitudeToPixelSpaceY:(double)latitude
{
    return round(MERCATOR_OFFSET - MERCATOR_RADIUS * logf((1 + sinf(latitude * M_PI / 180.0)) / (1 - sinf(latitude * M_PI / 180.0))) / 2.0);
}

- (double)pixelSpaceXToLongitude:(double)pixelX
{
    return ((round(pixelX) - MERCATOR_OFFSET) / MERCATOR_RADIUS) * 180.0 / M_PI;
}

- (double)pixelSpaceYToLatitude:(double)pixelY
{
    return (M_PI / 2.0 - 2.0 * atan(exp((round(pixelY) - MERCATOR_OFFSET) / MERCATOR_RADIUS))) * 180.0 / M_PI;
}

#pragma mark -
#pragma mark Helper methods

- (MKCoordinateSpan)coordinateSpanWithMapView:(MKMapView *)mapView
                             centerCoordinate:(CLLocationCoordinate2D)centerCoordinate
                                 andZoomLevel:(NSUInteger)zoomLevel
{
    // convert center coordiate to pixel space
    double centerPixelX = [self longitudeToPixelSpaceX:centerCoordinate.longitude];
    double centerPixelY = [self latitudeToPixelSpaceY:centerCoordinate.latitude];
    
    // determine the scale value from the zoom level
    NSInteger zoomExponent = 20 - zoomLevel;
    double zoomScale = pow(2, zoomExponent);
    
    // scale the map’s size in pixel space
    CGSize mapSizeInPixels = mapView.bounds.size;
    double scaledMapWidth = mapSizeInPixels.width * zoomScale;
    double scaledMapHeight = mapSizeInPixels.height * zoomScale;
    
    // figure out the position of the top-left pixel
    double topLeftPixelX = centerPixelX - (scaledMapWidth / 2);
    double topLeftPixelY = centerPixelY - (scaledMapHeight / 2);
    
    // find delta between left and right longitudes
    CLLocationDegrees minLng = [self pixelSpaceXToLongitude:topLeftPixelX];
    CLLocationDegrees maxLng = [self pixelSpaceXToLongitude:topLeftPixelX + scaledMapWidth];
    CLLocationDegrees longitudeDelta = maxLng - minLng;
    
    // find delta between top and bottom latitudes
    CLLocationDegrees minLat = [self pixelSpaceYToLatitude:topLeftPixelY];
    CLLocationDegrees maxLat = [self pixelSpaceYToLatitude:topLeftPixelY + scaledMapHeight];
    CLLocationDegrees latitudeDelta = -1 * (maxLat - minLat);
    
    // create and return the lat/lng span
    MKCoordinateSpan span = MKCoordinateSpanMake(latitudeDelta, longitudeDelta);
    return span;
}

#pragma mark -
#pragma mark Public methods

- (void)setCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate
                  zoomLevel:(NSUInteger)zoomLevel
                   animated:(BOOL)animated
{
    // clamp large numbers to 28
    zoomLevel = MIN(zoomLevel, 28);
    
    // use the zoom level to compute the region
    MKCoordinateSpan span = [self coordinateSpanWithMapView:self centerCoordinate:centerCoordinate andZoomLevel:zoomLevel];
    MKCoordinateRegion region = MKCoordinateRegionMake(centerCoordinate, span);
    
    // set the region like normal
    [self setRegion:region animated:animated];
}
@end @import url(http://www.cppblog.com/cutesoft_client/cuteeditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

提示:使用时,用UserMapView(地图名)调用即可.
posted @ 2012-10-12 18:07 竹 阅读(573) | 评论 (0)编辑 收藏

仅列出标题